Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Kris48
Frequent Visitor

present the value in a non-standard way

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 
1.png

1 ACCEPTED SOLUTION

For your first ask you need to materialize the measure.

 

lbendlin_0-1730066511821.png

 

I don't understand the second ask.

 

View solution in original post

4 REPLIES 4
SachinNandanwar
Super User
Super User

My attempt

SachinNandanwar_2-1730075222284.png

 

PBI File location : https://easyupload.io/2kg3k7



Regards,
Sachin
Check out my Blog
lbendlin
Super User
Super User

Will SubCat always be the last element in the hierarchy?

 

lbendlin_0-1730061103619.png

 

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 🙂

1.png2.png

For your first ask you need to materialize the measure.

 

lbendlin_0-1730066511821.png

 

I don't understand the second ask.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.