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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors