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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Show measure only on drill down

Hi, I have a report with two measures, without drill down I have to show Measure 1 and when drilling down Measure 1 and Measure 2. I can set values to 0, but want to hide the series, so it doesnt show neither the data or the legend unless I'm drilling down.

Any idea of how can I achieve this?

Thank you!

2 ACCEPTED SOLUTIONS
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

You can set the values to BLANK(). Please refer to my test below.

M 1 =
IF (
    HASONEVALUE ( DimProduct[ColorName] ),
    SUM ( FactSales[SalesQuantity] ),
    BLANK ()
)

Show_measure_only_on_drill_down1

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

I personally prefer ISFILTERED vs HASONEVALUE to selectively hideshow measures but either will work in most cases but there are a few where ISFILTERED is your only option.

 

Also I know of no way to selctively hide chart components but what you may want to do is have two visuals and use bookmarks to control which is displayed versus using drill down.

View solution in original post

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

You can set the values to BLANK(). Please refer to my test below.

M 1 =
IF (
    HASONEVALUE ( DimProduct[ColorName] ),
    SUM ( FactSales[SalesQuantity] ),
    BLANK ()
)

Show_measure_only_on_drill_down1

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you @v-jiascu-msft is there any way to hide the legend (M1 and M2) before drill down and make them appear on drill down?

Thanks!

I personally prefer ISFILTERED vs HASONEVALUE to selectively hideshow measures but either will work in most cases but there are a few where ISFILTERED is your only option.

 

Also I know of no way to selctively hide chart components but what you may want to do is have two visuals and use bookmarks to control which is displayed versus using drill down.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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