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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
smpa01
Super User
Super User

Selectively display Subtotal

@AlexisOlson  @parry2k How can I selectively display subtotal for a measure (with or without CalGrp) ; Currently I am doing this

 

smpa01_0-1718767774267.png

 

PFA Sample

 

Thank you in advance

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

I'm not sure I fully understand what you want the output to be (a bunch of blank total lines?) but I would try ISINSCOPE instead of HASONEVALUE.

 

AlexisOlson_1-1718904306347.png

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @smpa01 ,

 

Thanks for the reply from @AlexisOlson / @lbendlin .

 

Have you tried using the function provided by AlexisOlson ?

 

Did it help you solve the problem?

 

If yes, please accept his answer as the solution, which will be of great help to users who encounter similar problems as yours.

 

If you have any further questions, please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

AlexisOlson
Super User
Super User

I'm not sure I fully understand what you want the output to be (a bunch of blank total lines?) but I would try ISINSCOPE instead of HASONEVALUE.

 

AlexisOlson_1-1718904306347.png

lbendlin
Super User
Super User

This is a blind spot - if a parent category only has one child the HASONEVALUE is ineffective. 

 

Have you considered selectively disabling the row total for that category?

 

lbendlin_0-1718829006078.png

 

Thanks @lbendlin  I don't think it would work the I way I want it.  I was hoping for a progrmatic way to achieve this if possible

 

//pseudocode

if(max(tbl[cat])=3 && issubtotal(tbl[_input])=true(), [_input],BLANK())

 

 

smpa01_0-1718832701656.png

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Yeah, ISSUBTOTAL function (DAX) - DAX | Microsoft Learn  has its own limitation.  You can't use it to sense where in the visual you are.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.