Forum Discussion
Yesterday and Today Calculation
You could add 2 calculated columns and use these as slicers:
IsToday = IF(Table1[Date] = TODAY(),TRUE(),FALSE())
IsYesterday = IF(DATEADD(Table1[Date],1,DAY) = TODAY(),TRUE(),FALSE())
Hope this helps
JJ
Thanks for response, it did works!, but i'm looking something different than this!, Please see below screen shot for reference
Can we get Mutli circle progras wheel in power BI, Thanks for your help!, Much appreciated
- DoubleJ9 years agoSolution Supplier
Ok, so you can create a custom column:
Slicer =IF(DATEADD(Table1[Date],1;DAY) = TODAY(),"Yesterday",IF(Table1[Date] = TODAY(),"Today","Before Yesterday"))
An then use this as slicer:
Is this what you are looking for?
- Dan849809 years agoRegular Visitor
Excellent it works!, thanks for help!, is it possible to hide before yesterday in slicer?, i need only today and yesterday
Thanks for your help!
- Dan849809 years agoRegular Visitor
I haven't got any answer yet!
- Irussaa7 years agoHelper I
how can I made slicer like this?
I mean, how to customize the table data and get that slicer as the result?
DoubleJ wrote:Ok, so you can create a custom column:
Slicer =IF(DATEADD(Table1[Date],1;DAY) = TODAY(),"Yesterday",IF(Table1[Date] = TODAY(),"Today","Before Yesterday"))
An then use this as slicer:
Is this what you are looking for?