Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi
Please I need a method to create a variance chart showing the first N customers(based on users input ) and a dynamic variance = average sales - value . Value is a dynamic input from the users .The picture is just the logic im trying to explain
Solved! Go to Solution.
Hi,
Modify the measure to
Measure = if(ISBLANK([Top CX]),BLANK(),[Top CX]-SELECTEDVALUE('Price'[Price]))
Hope this helps.
Hi,
Share the link from where i can download your PBI file.
Hi,
Modify the measure to
Measure = if(ISBLANK([Top CX]),BLANK(),[Top CX]-SELECTEDVALUE('Price'[Price]))
Hope this helps.
@eaweyepe01 , Use a what if parameter or slicer
CALCULATE([Avg Sales],TOPN(selectedvalues(param[Param]) ,all(Query1[customer]),calculate([Avg Sales],DESC),VALUES(Query1[customer])))
also check
Thanks amitchandak,
It is working partially , it shows all customers and returns Avg Sales only for selected Top N and for the rest of customers its blank. Is there a way I can code so I dont see the remaining customers in my table?
Thanks
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 31 | |
| 22 | |
| 14 |
| User | Count |
|---|---|
| 67 | |
| 58 | |
| 30 | |
| 27 | |
| 25 |