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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.