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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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