Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Sales = If (amt <0, amt+5, amt-5)
result:
Geo amt sales
India 15 10
japan -10 -5
total 5 0
here grant total is incorrect
expected O/P
1. we have to fix the incorrect total
2. it should work whatever user selecting any limit not limited one it could be multiple fields also instead of Geo
Solved! Go to Solution.
your measure --> Sales = If (amt <0, amt+5, amt-5)
now create a new measure also :
additive sales = sumx(values(tbl_name[col_name]), [Sales])
let me know if it works for you .
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
this will be work but i want this part dynamically "values(tbl_name[col_name]". user wants to select any field
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |