Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
pedroccamaraDBI
Post Partisan
Post Partisan

Sum sales without order date

Hello all
I need a measure to sum all my sales, that order date are blank.
Can you help?
Thanks a lot

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

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

View solution in original post

9 REPLIES 9
tamerj1
Super User
Super User

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

Awesome. Thank you so much @tamerj1 

tamerj1
Super User
Super User

SUMX(

FILTER(

Table,

ISBLANK(Table[Order Date])

),

Table[you column name]
)

amitchandak
Super User
Super User

@pedroccamaraDBI , Try a measure like

calculate( sum(Table[sales]), filter(Table, isblank(Table[order date]) ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Here it goes @amitchandak 
Capture001.JPG
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?

Yes @tamerj1 Order Sales same table as sales, and Date from Dates

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.