Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello everyone,
This is the dynamic measures using SWITCH example :
SelectedMeasure = IF(HASONEVALUE(tblParamMeasures[MeasureName]),SWITCH(VALUES(tblParamMeasures[MeasureName]),"Avg Unit Price",AVERAGE(fctSales[UnitPrice]),"Avg Quantity Ordered",AVERAGE(fctSales[OrderQuantity]),"Avg Tax Amount",AVERAGE(fctSales[TaxAmt]),"Avg Product Cost",AVERAGE(fctSales[ProductStandardCost])),AVERAGE(fctSales[UnitPrice])).
Are you possible to do with Dimensions ?? if yes How ?
I want to do dynamic dimensions with switch.
Hi, @alsolok
I'm not quite sure what kind of output you expect.
Do you want to select different measure through the slicer?, if so, then the formula you provided above can already achieve it. It would be very helpful if you could provide a screenshot of the output you want.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@alsolok , for dimension you can use bookmarks and button
https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
or
https://www.youtube.com/watch?v=6jeSIRpjv0M
https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/
User | Count |
---|---|
126 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
116 | |
102 | |
71 | |
61 |