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 September 15. Request your voucher.
year | daily sales | 2019 sales |
2022 | 12 | 10 |
2023 | 13 | 10 |
2024 | 14 | 10 |
total | 49 | 10 |
hello,
the measure works and does seem like it could be faster. However, when I tried it , the measure is slower than simply using SUMX.
Hi @Anonymous ,
Here are the steps you can follow:
1. Create measure.
Measure =
var _table=
SUMMARIZE('Table','Table'[Date].[Year],"Value",[2019 sales])
return
IF(
HASONEVALUE('Table'[Date].[Year]),[2019 sales],SUMX(_table,[2019 sales])
)
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
70 | |
64 | |
62 | |
49 | |
28 |
User | Count |
---|---|
117 | |
75 | |
61 | |
54 | |
42 |