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
cel
Helper I
Helper I

Selective display of data in visualisation

Hello,

 

This is my current display of data:

cel_0-1666938376506.png

 

This is how I would like the visualisation to look like:

cel_1-1666938436534.png

 

I would like to remove the % change for 2021 and Total as it doesn't really make sense as I am not displaying 2020's data.

I have selecting the % Change column for 2021 and right clicking to hide, but the whole of 2021 just disappears.

 

Is there a way in which I can onlydisplay the % Change for 2022?

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @cel ,

you need to use these 3 measures and you have to use a calendar table related to the Sales table:

 

Rev 2022 = CALCULATE(SUM(Table[Rev]),Calendar[Year] = 2022)

Rev 2021 = CALCULATE(SUM(Table[Rev]),Calendar[Year] = 2021)

%Change = DIVIDE([Rev 2022] - [Rev 2021], [Rev 2021])

 

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

1 REPLY 1
mangaus1111
Solution Sage
Solution Sage

Hi @cel ,

you need to use these 3 measures and you have to use a calendar table related to the Sales table:

 

Rev 2022 = CALCULATE(SUM(Table[Rev]),Calendar[Year] = 2022)

Rev 2021 = CALCULATE(SUM(Table[Rev]),Calendar[Year] = 2021)

%Change = DIVIDE([Rev 2022] - [Rev 2021], [Rev 2021])

 

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

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.