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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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