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
markefrody
Post Patron
Post Patron

Previous Week Results Shown As Monday of Following Week In Graph

Hi everybody,

I have this table which contains Date, Day, and Value Only. I just manually added the "Calculation" and "Graph" columns so you can better see what I need. 

markefrody_1-1684433124383.png

 

I need a graph that will have the previous week data to be shown in Monday of the following week. As per example above: March 6 Monday(03/06/2023) to March 12 Sunday (03/12/2023) values needs to be summed up and will be displayed in the graph as date March 13 Monday (03/13/2023).

There are dates (example March 13 to March 19) in my dataset which are not present like below.

markefrody_2-1684433665248.png

 

I would like to have the missing dates be generated and counted as value "0":

markefrody_3-1684433917638.png

 

The output in table and graph form would look like this:

markefrody_4-1684434021600.png

You can find the sample data here:
https://www.dropbox.com/scl/fi/cgg2x2r9zvswvgg0p09cu/Mondays-Only.xlsx?dl=0&rlkey=byxlsn988gfq24y349...

Hope you can all help me in creating a DAX for this. Thanks in advance!

Best regards,
Mark V

 

1 REPLY 1
lbendlin
Super User
Super User

lbendlin_0-1684641110336.png

see attached

 

 

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.