Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi community
I am having a little trouble understanding how to use variables, i have made the following formula:
Test =
Solved! Go to Solution.
@ChristianHE , Try like
Test = CALCULATE([Potientiale];TOPN(10,allselected(Kundetabel);[Potientiale],ASC),VALUES(Kundetabel[KUNDENRNAVN]))
@ChristianHE , better have to measure with filter sales >1, if it line level. If it after grouping then use values
sumx(Filter(values(Table[Col1]),[sales]>1),[Sales])
@ChristianHE , Try like
Test = CALCULATE([Potientiale];TOPN(10,allselected(Kundetabel);[Potientiale],ASC),VALUES(Kundetabel[KUNDENRNAVN]))
@amitchandak it works, Thank you very much.
If i wanted to add more filters to my [Kundetabel], for example if i only wanted to see customers with a sales above 1. Would that be possible to add in the formula or should it be added in the "Filters"-pane?
@ChristianHE , better have to measure with filter sales >1, if it line level. If it after grouping then use values
sumx(Filter(values(Table[Col1]),[sales]>1),[Sales])
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 9 | |
| 6 | |
| 6 | |
| 5 |