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 all
I need a measure to sum all my sales, that order date are blank.
Can you help?
Thanks a lot
Solved! Go to Solution.
Hi @pedroccamaraDBI
Many options. The easiest is to create two calculated columns using (IF)
- Column1 returns zeros for blanks and one for other rows.
- Column2 return 1 for blanks and zero for other rows
Sales amount without blanks would be SMX ( Sales, Sales[Sales] * Sales[Column1] )
Sales amount with blanks would be SMX ( Sales, Sales[Sales] * Sales[Column2] )
Another option would be to use
SUMX ( FILTER ( Sales, NOT ISBLANK ( Sales[Sales] ) ), Sales[Sales] ) for sales without blanks
SUMX ( FILTER ( Sales, NOT ISBLANK ( Sales[Sales] ) ), Sales[Sales] ) for sales with blanks
Hi @pedroccamaraDBI
Many options. The easiest is to create two calculated columns using (IF)
- Column1 returns zeros for blanks and one for other rows.
- Column2 return 1 for blanks and zero for other rows
Sales amount without blanks would be SMX ( Sales, Sales[Sales] * Sales[Column1] )
Sales amount with blanks would be SMX ( Sales, Sales[Sales] * Sales[Column2] )
Another option would be to use
SUMX ( FILTER ( Sales, NOT ISBLANK ( Sales[Sales] ) ), Sales[Sales] ) for sales without blanks
SUMX ( FILTER ( Sales, NOT ISBLANK ( Sales[Sales] ) ), Sales[Sales] ) for sales with blanks
SUMX(
FILTER(
Table,
ISBLANK(Table[Order Date])
),
Table[you column name]
)
@pedroccamaraDBI , Try a measure like
calculate( sum(Table[sales]), filter(Table, isblank(Table[order date]) ) )
Hello @amitchandak
I don't think it's working. Don't you think it would be better with an iteractive measure?
The calculation will be line by line but only if order date is blank. Can you still help me?
@pedroccamaraDBI ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Here it goes @amitchandak
I still don't know if the values are blank, or null or just weird blanks, you know? 1 thing i know: that column is date formated.
Thank you all
@pedroccamaraDBI
Are you getting this from a visual? Is the order date is in the same Sales table?
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 |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |