Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Assume I have the following two conditions specified in capabilities.json below.
"conditions": [ { "ltd": { "min": 1, "max": 1 }, "lng": { "min": 1, "max": 1 }, "zip": { "max":0 } } ]
and
"conditions": [ { "ltd": { "max": 0 }, "lng": { "max": 0 }, "zip": { "min": 1, "max": 1 } } ]
Thanks,
Martijn
Solved! Go to Solution.
Hi @Blaenzo - for question #2, we had a similar post the other day - does this response cover-off your question? If not, let me know and I'll see if I can help fill in any gaps.
Good luck,
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi @Blaenzo - for question #2, we had a similar post the other day - does this response cover-off your question? If not, let me know and I'll see if I can help fill in any gaps.
Good luck,
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi @dm-p ,
Yes, that worked. Thanks very much.
The filter statement also works nicely with data roles that accept multiple fields as it returns an array of all fields.
From here you can indeed work out which conditions have been met.
Thanks,
Martijn
The code linked in the previous answer also shows my approach to 'testing' for conditions once I get the column metadata, which may help with solving question #1 - if you have multiple conditions, then you can create flags to indicate suitable scenarios and perhaps branch on those using a switch statement or simialr, depending on the complexity of your view model.
If you need further advice, let me know and I'll try and mock something up when I get back into the office next week.
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
23 | |
3 | |
2 | |
2 | |
2 |