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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Add to a table previous days values

Hallo,

 

How would it possible to creat such a table with an automatic shift of the days depening on the filter chose. 

The filter is only for one date, then the table has to show the day and four days before. 

 

ValueFri 17/01Mon 20/01Tue 21/01Wed 22/01Thu 23/01 
       
A0.9 t0.0 t0.4 t0.5 t0.9 t 
B0.5 t0.0 t0.0 t0.2 t0.6 t 
C0.6 t0.0 t0.0 t0.5 t0.7 t 
D6.0 t0.0 t0.2 t5.0 t7.7 t 
E0.0 t0.0 t0.0 t0.0 t0.0 t 
F1.1 t0.0 t0.0 t0.5 t1.1 t 
G16.4 t0.0 t0.0 t14.3 t16.1 t 
H0.0 t0.4 t0.0 t0.0 t1.1 t 
I0.0 t0.0 t0.0 t0.0 t5.3 t 
J0.0 t0.0 t0.0 t0.0 t15.1 t 
1 ACCEPTED SOLUTION

So, that should be something like:

Column = IF([Date] < (TODAY() - 5),FALSE(),TRUE())



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

6 REPLIES 6
Greg_Deckler
Community Champion
Community Champion

Tough to say but generally you would want to unpivot those date columns.



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler @amitchandak 

 

I need to creat a column simmilar to the one in the picture to have a true or false values. If the date was in the last 5 days then True if not then False. 

 

 

 

 

 

2020-04-06 17_32_17-PIA 2.1 several tabs - Power BI Desktop.png

So, that should be something like:

Column = IF([Date] < (TODAY() - 5),FALSE(),TRUE())



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler @amitchandak 

 

Something simmilar to this one that I created for the current day.

 

Current day =

var currentrowdate = FORMAT('Date'[StartDate], "mm/dd/yyyy")
var IStoday = FORMAT(NOW(),"mm/dd/yyyy")
return
IF(IStoday=currentrowdate,"Yes","No")
amitchandak
Super User
Super User

Is this final data format. Can you please explain with an example.


Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

 

@amitchandak 

 

I need to creat a column simmilar to the one in the picture to have a true or false values. If the date was in the last 5 days then True if not then False. 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.