The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Please help me to present the value in a non-standard way
Link PBIX: https://drive.google.com/file/d/1fJKwtkJ3NtRTkVnW-SX_C3sg4t3ByiNY/view?usp=sharing
Solved! Go to Solution.
For your first ask you need to materialize the measure.
I don't understand the second ask.
Will SubCat always be the last element in the hierarchy?
Units_ =
var s = sum('Table'[Units])
var sc = values('Table'[SubCat])
var a = CALCULATETABLE('Table',REMOVEFILTERS('Table'[SubCat]))
var b = SUMMARIZE(a,[SubCat],"sm",sum('Table'[Units]))
var t = SELECTCOLUMNS(TOPN(1,b),[SubCat])
return if(sumx(b,[sm])=s*COUNTROWS(b),if(t=sc,s,0),s)
Thank you very much! You helped me a lot!
I have two more requests. If you don't find time for it, I will accept your earlier answer anyway, but I will be very grateful if you can help me 🙂
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |