Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
108 | |
101 | |
38 | |
35 |
User | Count |
---|---|
149 | |
122 | |
76 | |
74 | |
52 |