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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Newuser20240515
New Member

Show percent change for only most recent period

Hi folks,

 

I have the following table. I currently have sales by weeks and % change for all the weeks shown.

But I would like to show the sales for all weeks but the % change for only the last week.

I believe I could hide the older columns if the data was static but difficult to do so as the week progresses.

 

Categories  202415    202414   202413   202412   202411
 Sales%ChangeSales%ChangeSales%ChangeSales%ChangeSales
Product 15056%32      
Product 26214%54      
Product 33030%23      

 

Any suggestion to resolve this issue ?

Thanks in advance!

4 REPLIES 4
v-shex-msft
Community Support
Community Support

HI @Newuser20240515,

You can extract the fact table latest date to store in variable and use this as condition to compare with current date value from matrix column field.

Then you can show the result if current date is the latest date and replace the other result to blank. (power bi visuals will auto hide the fields if whole row/column only existed blank values)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft, can you share an example on how to do it? Thanks

Hi @Newuser20240515 ,

Can you please share a some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Newuser20240515
New Member

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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