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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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!:
Mastering Power BI 2nd Edition

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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