The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Can I use a measure in a visual level filter. I have to display the products those have productSales above the average value avg .
I'm using DirectQuery,so the average value may change over time.
Solved! Go to Solution.
Hi @Anonymous
I have a table "Sales"
"Avg" and ">Avg" are "calculated columns"
Avg = AVERAGEX(ALL(Products);Products[Sales])
> Avg = IF(Products[Sales] >= Products[Avg];">Average";"<Average")
You can use it to filter.
I hope this helps
BILASolution
Hi @Anonymous,
Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.
Best Regards!
Dale
Hi @Anonymous,
You mean you want to add a measure as a value rather than a filter? I'm afraid we can do it only with filter TOPN. Please refer to: https://community.powerbi.com/t5/Desktop/Filter-by-a-measure/m-p/101130.
Best Regards!
Dale
Hi @Anonymous
I have a table "Sales"
"Avg" and ">Avg" are "calculated columns"
Avg = AVERAGEX(ALL(Products);Products[Sales])
> Avg = IF(Products[Sales] >= Products[Avg];">Average";"<Average")
You can use it to filter.
I hope this helps
BILASolution
User | Count |
---|---|
71 | |
64 | |
62 | |
50 | |
28 |
User | Count |
---|---|
117 | |
75 | |
61 | |
54 | |
42 |