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
I have two columns, SumLast12Months and SumLast12Months2YearsAgo.
SumLast12Months gives me the sum of the spend of visitors in the last 12 months and SumLast12Months2YearsAgo gives ,e the sum of the spend over 12 months, 2 years ago.
Hi @MissBI_21 ,
You can create a new measure to place on the visual object to check if total is correct.
TestLogic = IF([SumLast12Months2YearsAgo] > 0, [SumLast12Months], 0)
Total_TestLogic =
SUMX(
SUMMARIZE(
'Table',
'Table'[ColumnName],//Your first column on the visual object (the column that determines the value of the measure that follows)
"total",[TestLogic]
),
[total]
)
Or:
Total_TestLogic =
SUMX(VALUES('Table'[ColumnName]),[TestLogic])
//Your first column on the visual object (the column that determines the value of the measure that follows)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
What do you mean by:
//Your first column on the visual object (the column that determines the value of the measure that follows)
Hi @MissBI_21 ,
Please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
111 | |
108 | |
108 | |
93 | |
61 |
User | Count |
---|---|
169 | |
138 | |
135 | |
102 | |
86 |