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

How to Hide values in crosstab

Hi Team,

 

I need a situation to hide the few values in a crosstab, I have 3 measure values in the crosstab, Year Turnover rate, Quarter turnover rate, Month turnover rate, and Year, Quarter and Month Categories

In the Year Turnover Rate, It Should show only Year-related information, but in my case, it is showing Quarter and monthly information too. How to hide Quarter and month-related information in the Year Turnoverrate measure 

And same applies to Quarter Turnover Rate. Can anyone help me please

For reference:-

kumarch_1-1675436644544.png

 

 

Regards,

Kiran

 

 

 

 

 

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous ,

Use isinscope and merge the three

 

Switch(true(),

isinscope(Date[Month]), [Turn Over Rate %],

isinscope(Date[Quarter]), [Quarter Turn Over Rate %],

[Year Turn Over Rate %]

)

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

View solution in original post

v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Here are the steps you can follow:

1. Create measure.

Year =
IF(
ISINSCOPE('Table'[Date].[Year]) && NOT(ISINSCOPE('Table'[Date].[Quarter])),[Year Turnover rate],BLANK())
Qu =
IF(
ISINSCOPE('Table'[Date].[Quarter]) && NOT(ISINSCOPE('Table'[Date].[Month])),[Quarter turnover rate],BLANK())
Month =
IF(
    ISINSCOPE('Table'[Date].[Month]),[Month turnover rate],
    BLANK())

2. Result:

vyangliumsft_0-1675651948600.png

 

Best Regards,

Liu Yang

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

4 REPLIES 4
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Here are the steps you can follow:

1. Create measure.

Year =
IF(
ISINSCOPE('Table'[Date].[Year]) && NOT(ISINSCOPE('Table'[Date].[Quarter])),[Year Turnover rate],BLANK())
Qu =
IF(
ISINSCOPE('Table'[Date].[Quarter]) && NOT(ISINSCOPE('Table'[Date].[Month])),[Quarter turnover rate],BLANK())
Month =
IF(
    ISINSCOPE('Table'[Date].[Month]),[Month turnover rate],
    BLANK())

2. Result:

vyangliumsft_0-1675651948600.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

@v-yangliu-msft Thanks for the reply, It worked for me.

amitchandak
Super User
Super User

@Anonymous ,

Use isinscope and merge the three

 

Switch(true(),

isinscope(Date[Month]), [Turn Over Rate %],

isinscope(Date[Quarter]), [Quarter Turn Over Rate %],

[Year Turn Over Rate %]

)

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Anonymous
Not applicable

@amitchandak Thanks for the quick reply, It worked fine for me.

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.

Top Kudoed Authors