Forum Discussion
Anonymous
6 years agoNot applicable
filter date field by a dynamic date
Hi Gurus, I am using PowerBI dataset to create my end user reports (Get data > PowerBI datasets). When I create the powerbi dataset I need to restric some on the data based on a dynamic date...
- Anonymous6 years ago
Greg_Deckler Managed to include a column in the dataset extarct, I think that is the only way, You cannot do it in a measure.
Thanks for the direction.
Anonymous
6 years agoNot applicable
Hi mate, based on your guide I manged to get the date I want to filter the dataset (using FIlter Pane).
below is the measure I created.
ReportFilterDate =
VAR currdate = TODAY ()
VAR montsback = 4 * 30.5
VAR Result = currdate - montsback
RETURN
Result
Did you know how do I implement this filter in the Filter pane to satisfy below conditon.(BASIC_START_DATE is a date column in one of the tabels of my datamodel).
BASIC_START_DATE > ReportFilterDate.
It seems like I cannot use filter pane
Greg_Deckler
6 years agoCommunity Champion
Anonymous - No, I do not know how to use the Filter Pane to do that unless you created a measure for returning 1 or 0, True or False, etc. But, the exact implementation depends on the visual.
- Anonymous6 years agoNot applicable
Greg_Deckler I need to filter the whole report based on this condtion.
I will try to get a measure that retuns 0 or 1 and then filter out from the filter pane.
Thanks mate.
- Anonymous6 years agoNot applicable
Greg_Deckler Managed to include a column in the dataset extarct, I think that is the only way, You cannot do it in a measure.
Thanks for the direction.