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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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