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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All,
I have one measure with Selectedvalue measure.
Everything is ok, but when I want to sort the column which i use in the Selectedvalue measure, it stop working and the output is incorrect.
Please see my measures:
@A_a_a , Try like
ABCD =
var v=[Selected A]
var c1 = calculate(sum('Table1'[Time]),filter('Table1', 'Table1'[Activity] = "Run" && 'Table1'[A]=v))
var c2 = calculate(sum('Table1'[Time]),filter('Table1', 'Table1'[Activity] = "Run"),All('Table1'[A]))
var cfin= divide(c1,c2,0)
var ctotal = divide(c2,calculate(sum('Table1'[Time]),All('Table1'[A]),All('Table1'[Activity])),0)
var output = IF(COUNTROWS(VALUES('Table1'[A]))=1,cfin,ctotal)
Hi @amitchandak
Thank you for that.
Unfortunately, now it shows 100 % everywhere, even before sort by column...
Hi @amitchandak
I think the issue is with Selected A = SELECTEDVALUE('Table1'[A]) -
by default in matrix table i can see:
A
0
1
2
3
4
...
23
but I need to see it as:
6
7
8
9
...
5
I created an additional column so I can sort the numbers in order that I need, but then the output of ABCD measure is incorrect (100% everywhere).
Is there any solution that I can have measure SELECTEDVALUE sorted by another column... because 'sort by column' is providing wrong calcuations.
Thanks,
G.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 110 | |
| 50 | |
| 32 | |
| 29 |