The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
74 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
48 | |
46 |