Skip to content

Commit

Permalink
Merge pull request #5188 from kullJul/fix-conditions-example
Browse files Browse the repository at this point in the history
Fix conditions example
  • Loading branch information
mberdugo authored Feb 23, 2025
2 parents 759266f + 033eb49 commit a40290c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions powerbi-docs/developer/visuals/dataview-mappings.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,18 @@ You can also set multiple conditions for a data role. In that case, the data is

```json
"conditions": [
{ "category": { "min": 1, "max": 1 }, "measure": { "min": 2, "max": 2 } },
{ "category": { "min": 2, "max": 2 }, "measure": { "min": 1, "max": 1 } }
{ "category": { "min": 1, "max": 1 }, "measure": { "min": 0, "max": 2 } },
{ "category": { "min": 2, "max": 2 }, "measure": { "min": 0, "max": 1 } }
]
```

In the previous example, one of the following two conditions is required:

* Exactly one category field and exactly two measures
* Exactly two categories and exactly one measure
* Exactly one category field and no more than two measures
* Exactly two categories and no more than one measure field

> [!NOTE]
> Only one data role can have a minimun value of ≥ 1 per condition.
## Single data mapping

Expand Down

0 comments on commit a40290c

Please sign in to comment.