Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi there
I have sample data that looks like this
And some charts like this
When I select a month in the column chart, I wish for the 'sum of reg year value' card to show the sum of values <= the selected month but within the reg year.
For example if I select 'Sep 2023' the card should display the value 23
I've tried using the SELECTEDVALUE() function but to know success.
Thanks for any help
Solved! Go to Solution.
Hi,
I do not know how your semantic model looks like but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file if it suits your requirement.
expected result measure: =
CALCULATE (
SUM ( Data[Value] ),
Data[Date] <= MAX ( Data[Date] ),
Data[isRegYearFlag] = "Y"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I do not know how your semantic model looks like but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file if it suits your requirement.
expected result measure: =
CALCULATE (
SUM ( Data[Value] ),
Data[Date] <= MAX ( Data[Date] ),
Data[isRegYearFlag] = "Y"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
115 | |
105 | |
95 | |
58 |
User | Count |
---|---|
175 | |
147 | |
134 | |
105 | |
82 |