Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi I have a table visual in my report which repersents the raw dataset to users so that they can drill down to it.
The logic is to highlight rows which are have "duration" higher than the average for its category ("banneraverage"). Desired outcome is as such with my manual highlighting.
I seem to not be able to achieve this as when I put in the condition it will always outcome to be lower than duration as you can see by the third column with normal dax AVERAGE function.
BannerAverage = CALCULATE(AVERAGE('Truck Turnaround'[Duration (Mins)]), FILTER(ALLEXCEPT('Cat'),'Cat'[Banner]))
I have also tried
Condition =
VAR _PNSavgdur = CALCULATE(AVERAGE('Truck Turnaround'[Duration (Mins)]), FILTER('Store Mapping', 'Store Mapping'[Banner] = "PNS"))
VAR _NWavgdur = CALCULATE(AVERAGE('Truck Turnaround'[Duration (Mins)]), FILTER('Store Mapping', 'Store Mapping'[Banner] = "NW"))
VAR _4SQavgdur = CALCULATE(AVERAGE('Truck Turnaround'[Duration (Mins)]), FILTER('Store Mapping', 'Store Mapping'[Banner] = "4SQ"))
VAR _duration = SUM('Truck Turnaround'[Duration (Mins)])
RETURN IF(_NWavgdur > _duration || _4SQavgdur > _duration || _PNSavgdur >_duration,1,0)
Then use rule conditioning but think this will also not work because of the sum aggregate function. And values disappears.
Please help? As this seems like a rather simple thing to achieve but I am unable to achieve it.
Hi @Anonymous ,
Could you pls upload your .pbix file to onedrive business and share the link with us?Cant test without data...
Remember to remove the confidential information inside.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 68 | |
| 34 | |
| 33 | |
| 30 |