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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
poojagouspur1
Frequent Visitor

Hello I need help on Matrix report in Power BI

poojagouspur1_0-1681386041991.png

Can you please help if we can achieve the data as shown in the above screenshot by using the Matrix Component.

If I add the Actuals and Allocations in the Values section both the data is visible for past,current and future dates.

But I need Actuals and Allocations for Past and current and for Future only Allocations need to be displayed.

Please help if there is any way to achieve it.

Thanks.

2 REPLIES 2
poojagouspur1
Frequent Visitor

@amitchandak  Thanks for the Solution!!

Through this I am able to achieve the Column headers like Last 1 Week,Current and Next 1 Week.

But under that I need to show Actuals and Allocations both only for Current and Last 1 Week.

For current+ 1 week or Next Week only Allocations should be displayed.

Can we achieve this through Matrix component like restricting the display of Actuals column under  Next 1 week Header and showing only Allocations for next week ...

 

poojagouspur1_0-1681460785501.png

 

 

Thanks !!

amitchandak
Super User
Super User

@poojagouspur1 , Create the a column this in date table 

 

=

var _startweek = [date] -1*weekday([date],2) +1

var _today= today() -1*weekday(today() ,2) +1

var _diff = quotient(datediff(_startweek , _today, day),7)

return

Switch(true(),

_diff = 0, "Current Week",

_diff < 0, "Last " & _diff & " week" ,

_diff > 0, "Next " & _diff & " week"

)

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors