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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
VK_nz
Helper I
Helper I

Previous week Matrix not showing up - week group

Hi all,

 

Hoping to get pointer in right dirction. 

I have sales file where I am counting weekly sales volume by 'week group', I also want to have second colum showing previous 'week group' number (in PW column weekgroup 08/07 should show 85). I have tried 'parallel period' function without success. 

Link to my file: https://www.dropbox.com/scl/fi/6h3kw0x8matq6c3ibxccz/Sales.pbix?rlkey=dxg1flzmszw4cw1c9meuhg28x&st=y... 

 

Capture.JPG

4 REPLIES 4
Darui6
Frequent Visitor

Hi,

maybe you could a calculated column with the rank function for each week group (e.g week group 01/07 is ranked 1, then 08/07 2, then 15/07 3 and so on). https://learn.microsoft.com/de-de/dax/rank-function-dax

Then reference that rank in the calculation for the PW sales, where you use the measure for SalesVolume and say rank = rank-1.

It is giving incorrect no. to week indexCapture.JPG

Darui6
Frequent Visitor

You're almost there.

 

Try it with the following formula:

 

WeekRank = RANK(DENSE, ORDERBY(Calender[Year], DESC, Calender[FinWeekNo], DESC))

 

Capture.JPG

 

this didnt go well, previously it was considring fiscal year and starting counter at July, reseting counter at next fiscal year.

This one just index at whole date range, so when a single fiscal year is selected this will result in inaccurate count.

Thanks for your answer though.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.