Forum Discussion
KPIs using None Standard date Periods
This may have to do with how you created your custom time periods. Can you give us an example of how you "set a flag". Thanks
This is my Flag for the Rolling 12 Months
- kentyler6 years agoSolution Sage
It looks like the KPI indicator expects a set of dates. Perhaps you need a measure that selected the dates that have the correct flags....and then create the KPI over that.
It would help me if you could post a small sample power bi file.
- DebbieE6 years agoCommunity Champion
Unfortunately this is embedded in a large file for a customer which I cant share
I always throught for the KPI you had to use date information from a hierarchy for this, so it makes sense that it cant use my flag? But I dont know what to do instead
- kentyler6 years agoSolution Sage
Sometimes when I'm blocked I try and do things a different way. Maybe instead of using your flags you can use a function like
DATESINPERIOD
- 12/09/2018
- 2 minutes to read
Returns a table that contains a column of dates that begins with the start_date and continues for the specified number_of_intervals.
Syntax
DAXCopyDATESINPERIOD(<dates>,<start_date>,<number_of_intervals>,<interval>)Parameters
Term Definition dates A column that contains dates. start_date A date expression. number_of_intervals An integer that specifies the number of intervals to add to or subtract from the dates. interval The interval by which to shift the dates. The value for interval can be one of the following: year, quarter, month, day to develop your non-standard periods... and then you should have the date value to put in your KPI