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.
Dear Community,
I hope you can help me with the followind issue:
- I have a measure calculated that cumulates a value:
Capacity cumulated =
var LastPresentationDate = CALCULATE(LASTDATE(tblProject[Presentation.Date]),ALL(tblProject))
return
IF(
SELECTEDVALUE(tblDate[Date])>LastPresentationDate,BLANK(),
CALCULATE([Capacity],
FILTER(
ALL(tblDate[Date]),
tblDate[Date]<=min(MAX(tblDate[Date]),DATE(YEAR(TODAY()),12,31))
)
)
)
The LastPresentationDate is 31.01.2023.
However, when I put the values in a bar chart with the date hirarchy as x-axis it shows the cumulated value until the year 2100 instead of stopping in 2023. How can I manage to a bar chart with cumulated values that stops when the values stop, in this example in 2023?
I hope I did manage to explain my problem properly, if not please ask.
Looking forward to your answers/suggestions/help
Best regards
Manuel
Solved! Go to Solution.
Hello @Manuel123 ,
I understood your question but the problem is you use selected value to aggregate date value which is in this case is not useful because you didn't have any slicers.
You can use below measure code to achieve your desire output :
Dear @Anonymous,
thank you very much for your fast reply and the perfect working solution.
Best regards
Manuel
Hello @Manuel123 ,
I understood your question but the problem is you use selected value to aggregate date value which is in this case is not useful because you didn't have any slicers.
You can use below measure code to achieve your desire output :
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 |
---|---|
106 | |
94 | |
76 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |