Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
103 | |
75 | |
66 | |
63 |
User | Count |
---|---|
142 | |
105 | |
102 | |
81 | |
68 |