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
nicolast29
Helper V
Helper V

Understand is in scope in my case

Hi

I don't arrive to find a solution, for a case that for me is standard, but i have a lack of dax in this case

 

I use a matrix with different level of granularity,  I only want the sum at the last levet (genre)

I precise that this example is not my real world

 

For example is i am on the first level i want blank

nicolast29_0-1729097095110.png

 

if i am at the second level, blank

nicolast29_1-1729097119992.png

nicolast29_2-1729097253795.png

 

 

 

if only the first level il selected i want a blank value

 

I try a lot of is in scope and is filtered ... but i miss the clue

 

here my file

test countrow.pbix

 

thanks so much for the help

 

4 REPLIES 4
Anonymous
Not applicable

Hi @nicolast29 ,

 

Do you want to display a total value when the user expands the third level? If so , you could consider enabling Row subtotals. Then, by selecting Row level, you can set the other two levels individually and adjust their subtotal visibility to 'off' as needed.

 

vbofengmsft_0-1729154227361.png

Best Regards,

Bof

 

hi, thanks for the answer

But it is not ok because itshow a total at melbourne when melbourne is not drilled

lbendlin
Super User
Super User

Cannot reproduce

 

lbendlin_0-1729110987901.png

 

Hi

You file work, but cannot reproduce the solution on mine ....

 

For the other may be another way because I finally found a solution this night and found why my measure doesn't work, 

I use to much of blank, like this it works:

 

Fréquence_repas_suppérieur_à_un_v3 =
     iF(
        DIVIDE(COUNTROWS('f_Global & détails'),DISTINCTCOUNT('f_Global & détails'[Nom & Prénom Invité]),1)
            > 1,
            SWITCH(TRUE,
                [0_isinscopt_n3],
                IF(COUNTROWS('f_Global & détails') > 1,
                     COUNTROWS('f_Global & détails'),
                            BLANK()),
            [0_isinscopt_n2],"",
            [0_isinscopt_n1],""
               
            )
     )

 

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.