Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Solved! Go to Solution.
Hi @asfasfgasfg
I make some change to your three measures:
Huidig Jaar = CALCULATE(
sum(
Palmo_Transactions[AmountFC]),
filter(
ALLSELECTED(Palmo_Transactions),[Date]<=MAX(DateTable[DAY_DATE])&&YEAR(Palmo_Transactions[Date])=[CY])
)
Twee jaar terug =
CALCULATE(
sum(
Palmo_Transactions[AmountFC]),
filter(
ALLSELECTED(Palmo_Transactions),[Date]<=MAX(DateTable[DAY_DATE])&&YEAR(Palmo_Transactions[Date])=[CY]-2)
)
Vorig Jaar = CALCULATE(
sum(
Palmo_Transactions[AmountFC]),
filter(
ALLSELECTED(Palmo_Transactions),[Date]<=MAX(DateTable[DAY_DATE])&&YEAR(Palmo_Transactions[Date])=[CY]-1)
)
Output:
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hope this video might help :
https://www.youtube.com/watch?v=qJps43vWsWM&list=PLApPcvU5-R26t4dylOnPy8A2-lr4C0C--&index=5
Hi @asfasfgasfg
I test your code, it works on my table
The following is my table relationship:
Can you provide some sample data or pbix file?
Or you can try to delete the measure and create it again.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
https://drive.google.com/file/d/1ggd2QiTbAslJGYKvg3WYX9oQL4ED8osx/view?usp=share_link
Here is a link to the PBIX file
I don't have the date column in my visual.
Edit File is now free to everyone with access to the link. sorry..
Hi @asfasfgasfg
I make some change to your three measures:
Huidig Jaar = CALCULATE(
sum(
Palmo_Transactions[AmountFC]),
filter(
ALLSELECTED(Palmo_Transactions),[Date]<=MAX(DateTable[DAY_DATE])&&YEAR(Palmo_Transactions[Date])=[CY])
)
Twee jaar terug =
CALCULATE(
sum(
Palmo_Transactions[AmountFC]),
filter(
ALLSELECTED(Palmo_Transactions),[Date]<=MAX(DateTable[DAY_DATE])&&YEAR(Palmo_Transactions[Date])=[CY]-2)
)
Vorig Jaar = CALCULATE(
sum(
Palmo_Transactions[AmountFC]),
filter(
ALLSELECTED(Palmo_Transactions),[Date]<=MAX(DateTable[DAY_DATE])&&YEAR(Palmo_Transactions[Date])=[CY]-1)
)
Output:
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
Check out the May 2024 Power BI update to learn about new features.
User | Count |
---|---|
92 | |
83 | |
62 | |
61 | |
58 |
User | Count |
---|---|
157 | |
118 | |
103 | |
76 | |
66 |