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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Help creating a 6-Week Rolling 'Matrix Table' using multiple measures

Hi All,

 

I have been tasked with replicating an old Excel table into our new PowerBI reporting

 

Below is an example of what the table looks like:

table.jpg

 

I've tried following a few examples I've found on these forum's and at this stage I havent been able to get anything working.

 

We already have most of the values populating cards as per the below:

table 2.jpg

 

And I need to take those values and put them into the table above for each week ending sunday night.

 

The first, third, fifth and sixth cards above are just showing 'Counts' and cards two and four are based on SUMX measures.

 

Any help, ideas or guidance is very much apprecaited 😃

5 REPLIES 5
amitchandak
Super User
Super User

Rolling  in case you have date table ,

 

Rolling 6 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date Filer],MAX(Sales[Sales Date]),-6*7,DAY))  

 

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.

Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

 

 

Anonymous
Not applicable

@amitchandak - Thanks for your response but I'm not sure how to use this in the context of the table I'm trying to build?

Ashish_Mathur
Super User
Super User

Hi,

Share data in a format that can be pasted in an MS Excel file.  Also, show the desired result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur - The desired result would hopefully look like the table in the beginning of my post. I've been able to replicate other tables from Excel, I've just not done a 6 week rolling one in PowerBI before.

 

As for sample data, would pasting the the tables into Excel with some explanation be enough?

 

 

Hi,

If in the Calendar Table, you can also share a Week number column, then i may be able to help.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.