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
AzamatKudaev
Frequent Visitor

Show 7 days before data

Hi everyone!

I am trying to show 7 days before sales quantity on column.

For represent task clearly, let me show result table as a screen of excel, which I am looking for, but in aiming of simplicity, not for 7 days before, but 1.

 

Sorry of using not a power bi data scree. That's cause of big data volumes in power bi area

 

Tryed to use LOOKUPVALUE and DATEADD, but without success

Screen.png

 

 

1 ACCEPTED SOLUTION

Hey,

an easy way is to create a seperate table like:

let
Source = YourTable
in
Table.Group(YourTable, "GroupByColumn", {"Total", each List.Sum([SumColumn])})
in
Source

Have a look to following function 

https://msdn.microsoft.com/en-us/library/mt260774.aspx

 

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

You should be able to add your Date column as a slicer on your report page and if you click the little drop down arrow on the right-hand side of the visual you can select Relative and enter a number of days.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

It Is helpfull addition, but i need to see comparisons, as in result table in screen above

Hey,

an easy way is to create a seperate table like:

let
Source = YourTable
in
Table.Group(YourTable, "GroupByColumn", {"Total", each List.Sum([SumColumn])})
in
Source

Have a look to following function 

https://msdn.microsoft.com/en-us/library/mt260774.aspx

 

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.