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
What is the correct syntax for calculating the sum of a column only if another column is not null? For example,
I would only want to calculate the numbers in the second column, where Column A is not null.
Thanks!
Solved! Go to Solution.
Please try this measure
Measure = CALCULATE( SUM(Table1[Column B]), 'Table1'[Column A]<> BLANK() )
Please try this measure
Measure = CALCULATE( SUM(Table1[Column B]), 'Table1'[Column A]<> BLANK() )
How would you write the measure if you have various date columns that return "null"
Table = PRJ
Columns = Billing, Due, etc
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |