Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
hello everyone ,
i have a calculation
measure =
VAR value = sum([total])
RETURN
sumx(values(week nb),if ( [gross profit] > 0 , value , 0))
and i have a week slicer .
if i slect week 1, value was 10 but we were on a loss, so gross profit was negative so result of value gives 0
if i select week 2, value was 20 ,we were on profit, so gross profit was positive so result gives value 20
now if i select week 1 and week 2 together i am not getting getting 20 , iam getting 30. how can i solve this?
Solved! Go to Solution.
No error just didnt add up correct but i found a turn around and was able to fix my issue by adding the if to another measure formula that directly affect my formula similar to your suggestion,thank you for your time and help
what error do you get? And if would be good if you could also share the header of your data table, so to avoid spelling issues.
No error just didnt add up correct but i found a turn around and was able to fix my issue by adding the if to another measure formula that directly affect my formula similar to your suggestion,thank you for your time and help
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |