Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all,
i am rather new to PowerBI. After reading in this forum for a bit i created a measure for the rolling 12 months as followed:
Solved! Go to Solution.
@MB2746 Assuming you have some kind of measure that you are using in the visual, create the following measure and use it in your visual instead:
Measure =
VAR __Start = [Start Date]
VAR __End = [End Date]
VAR __Value = [Your Current Measure]
VAR __Date = MAX('Table'[Date])
VAR __Result = IF( __Date >= __Start && __Date <= __End, __Value, BLANK())
RETURN
__Result
Hi @Greg_Deckler ,
sadly i lost the access to the other account and cant mark your answer as solution. But thank you very much for the answer.
What i did in the meantime was to create a table with the name helptable by summarizing the products and the measures Startdate and EndDate as columns.
Then i created the measure:
Afterwards i used this in the visual as filter to only show the months that I need. With this i can also see empty months by using the calendar table as x-axis.
@MB2746 Assuming you have some kind of measure that you are using in the visual, create the following measure and use it in your visual instead:
Measure =
VAR __Start = [Start Date]
VAR __End = [End Date]
VAR __Value = [Your Current Measure]
VAR __Date = MAX('Table'[Date])
VAR __Result = IF( __Date >= __Start && __Date <= __End, __Value, BLANK())
RETURN
__Result
User | Count |
---|---|
98 | |
89 | |
82 | |
71 | |
67 |
User | Count |
---|---|
114 | |
103 | |
100 | |
72 | |
64 |