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
Anonymous
Not applicable

IF merged cells are blank give ...

Hello all,

 

I have been searching around the forum but couldn't find the solution for my case:

 

I merged 3 columns from the query 'RezReporting' into the query 'RAReporting'. The four columns I merged were called:

- Rental Days

- Total Bill Tax 1 Charge

- Total Bill Surcharge Charge

- Total Bill Rate Charge

 

Then I wanted to make a measure with these 4 and for those that did not have a match I want to use another measure created earlier called 'Res RpD (RA Report)'. This is what I had so far in my measure:

 

Res RpD (Rez) =
VAR
ResRpDRez = SUMX(RAReporting,RAReporting[RezReporting.Total Bill Tax 1 Charge]+RAReporting[RezReporting.Total Bill Surcharge Charge]+RAReporting[RezReporting xlsx.Total Bill Rate Charge])/SUM(RAReporting[RezReporting.Rental Days])
RETURN
    IF(ResRpDRez=BLANK(),[Res RpD (RA Report)],ResRpDRez)
 
So it looks like the BLANK() is not being recognized band being replaced if blank because even if I would use only the variable in another measure without the if statement, I have exactly the same result...
 
Can someone help me with this?
 
Very much appreciated!!
Regards,
Merel
 
 
 
 
1 ACCEPTED SOLUTION
vanessafvg
Super User
Super User

@Anonymous

 

i find isblank works better in some scenarios (can't rememer the reason why)

 

IF ( ISBLANK ( ResRpDRez ), [Res RpD (RA Report)], ResRpDRez )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
vanessafvg
Super User
Super User

@Anonymous

 

i find isblank works better in some scenarios (can't rememer the reason why)

 

IF ( ISBLANK ( ResRpDRez ), [Res RpD (RA Report)], ResRpDRez )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Thank you for the fast answer!

This worked!

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.