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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DMB90
Helper II
Helper II

Error Message - Cannot Convert Value of Type Text to Type True/False (Using Quarters)

Hi,

 

I have a table in Power BI and what I want the statement to say is:

 

If "Test Phase" is equal to Year End/Annual and "Status" is equal to "Complete, then pull in either the RF Quarters or Annual Quarters. However, I keep getting the error message "Cannot Convert Value of Type Text to Type True/False" when doing that. How do I resolve this?

 

RF QuartersAnnual QuartersTest PhaseStatus
Q1 2025 Year End/AnnualComplete
Q4 2025 Year End/AnnualComplete
 Q4 2025Year End/AnnualIncomplete
Q1 2025 Year End/AnnualComplete
Q2 2025 RemediationComplete
Q2 2025 Year End/AnnualComplete
 Q3 2025Year End/AnnualComplete
 Q3 2025Year End/AnnualComplete
 Q2 2025Year End/AnnualIncomplete
 Q4 2025Year End/AnnualComplete
 Q3 2025Year End/AnnualComplete
1 ACCEPTED SOLUTION
Anand24
Super User
Super User

Hi @DMB90,
Try this dax for a new calculated column:

Conditional_Column =
IF(
    Test_Table[Test Phase] = "Year End/Annual" && Test_Table[Status] = "Complete",
    IF(
        Test_Table[RF Quarters] <> BLANK(),
        Test_Table[RF Quarters],
        Test_Table[Annual Quarters]
    ),
    BLANK()
)


Anand24_0-1765905408509.png

 

 

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

 

View solution in original post

5 REPLIES 5
cengizhanarslan
Impactful Individual
Impactful Individual

Please try the formula below:

 

Measure =
IF (
Table[Test Phase] = "Year End/Annual" && Table[Status] = "Complete",
COALESCE ( Table[RF Quarters], Table[Annual Quarters] ),
BLANK ()
)

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn
Royel
Solution Sage
Solution Sage

Hi @DMB90 check out this easy dax to fix your issue 

Qtr & Year = 
IF(
    [Test Phase] = "Year End/Annual" && [Status] = "Complete",
    IF(
        NOT ISBLANK([RF Quarters]),
        [RF Quarters],
        [Annual Quarters]
    ),
    BLANK()
)

Royel_0-1765907840360.png

 

Find this helpful? ✔ Give a Kudo • Mark as Solution – help others too!

I’d love to stay connected. Join me on LinkedIn for more tips, learning paths, and real-world Fabric & Power BI solutions.

 

Anand24
Super User
Super User

Hi @DMB90,
Try this dax for a new calculated column:

Conditional_Column =
IF(
    Test_Table[Test Phase] = "Year End/Annual" && Test_Table[Status] = "Complete",
    IF(
        Test_Table[RF Quarters] <> BLANK(),
        Test_Table[RF Quarters],
        Test_Table[Annual Quarters]
    ),
    BLANK()
)


Anand24_0-1765905408509.png

 

 

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

 

Thanks everyone! 

 

This one did the trick.

Jihwan_Kim
Super User
Super User

Hi, 

I am not sure if I understood your question correctly, but please check the below image and the attached pbix file.

 

Jihwan_Kim_0-1765905099547.png

 

 

calculated column 01 = 
IF(data[Test Phase] = "Year End/Annual" && data[Status] = "Complete", 
    IF(not ISBLANK(data[RF Quarters]), 
            data[RF Quarters], 
            data[Annual Quarters]
        )
    )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.