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
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.


@ 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!:
The Definitive Guide to Power Query (M)

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
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.