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
Analitika
Post Prodigy
Post Prodigy

Not equal column value in Power BI

Hello,

 

I have issue, I tried to check if column name equal Taip then sum1, else sum2. But never Taip is reached even Taip is in column.

So why it happens?

Here is a visual:

Analitika_0-1655462304088.png

 

Meas = if(SELECTEDVALUE(_op_kiekis[Objektinė apskaita])="Taip",1,0)
2 REPLIES 2
johnt75
Super User
Super User

Check that in the data there are no trailing spaces or control characters

Analitika_0-1655464040601.png

It contains 1 but still wrong with a measure. My measure all time reach one measure.

bendra_suma_ar_objektine9 = 
    SUMX(
        VALUES(_op_kiekis[Objektinė apskaita]),
        if(SELECTEDVALUE(_op_kiekis[Objektinė apskaita]) in {"Taip",""}, [Bendra kaina_new],
        [Bendra kaina_new_be_obj])
    )

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.