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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
svishwanathan
Helper III
Helper III

Not include blank in table

Hello

 

I need help with writing a DAX statement. I  have a table that has project code and contract amt. Currently the table returns values even when there is no contract amount as long there is a project code

 

I know I can introduce a visual filter to remove rows where contract amt is blank but I have been asked to keep off visual filters because they want users to not be able to change any of the filters

 

I am trying to write this in DAX but to no avail

 

Sum of Contract Amt2 = CALCULATE( [Sum of Contract Amt],Not(ISBLANK(Awards[CONTRACT_AMT])))

 

Regards
Swati

2 ACCEPTED SOLUTIONS
BILASolution
Solution Specialist
Solution Specialist

Hi @svishwanathan

 

I don't understand very well, I hope this is what you're looking for...

 

Sum of Contract Amt 2 = IF(ISBLANK(FIRSTNONBLANK(Awards[Contract amt];1));BLANK();[Sum of Contract amt]) 

Regards

BILASolution

View solution in original post

Hi,

 

Try this

 

=IF(ISBLANK(Awards[Contract_Amt]),BLANK(),[your_measure])


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
BILASolution
Solution Specialist
Solution Specialist

Hi @svishwanathan

 

I don't understand very well, I hope this is what you're looking for...

 

Sum of Contract Amt 2 = IF(ISBLANK(FIRSTNONBLANK(Awards[Contract amt];1));BLANK();[Sum of Contract amt]) 

Regards

BILASolution

svishwanathan
Helper III
Helper III

Hello

 

I need help with writing a DAX statement. I  have a table that has project code and contract amt. Currently the table returns values even when there is no contract amount as long there is a project code

 

I know I can introduce a visual filter to remove rows where contract amt is blank but I have been asked to keep off visual filters because they want users to not be able to change any of the filters

 

I am trying to write this in DAX but to no avail

 

Sum of Contract Amt2 = CALCULATE( [Sum of Contract Amt],Not(ISBLANK(Awards[CONTRACT_AMT])))

 

Regards
Swati

Hi,

 

Try this

 

=IF(ISBLANK(Awards[Contract_Amt]),BLANK(),[your_measure])


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.