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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
SebSchoon1
Post Patron
Post Patron

wrong measure result

Hi guys,

 

I do a measure Asking if  The value in a column is equal to 2 and it only send information for some data not all.

 

here is my formula

 

REP FIN = if([reliquat total]=2,1,0)

SebSchoon1_0-1663934119833.png

why is this not working?

 

here is my link

 

https://we.tl/t-fHRehqwIvv

 

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi,

I am not sure whether I correctly understood your datamodel, but could you please try the below?

 

REP FIN =
IF ( ROUND ( [reliquat total], 0 ) = 2, 1, 0 )

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

Hello ^^

@Jihwan_Kim 

 

it does not work

 

What i need is to allocate one quantity to eache warehouse which have a Rank Less or equal to [Reliquat total]

 

But it does not work 😞

 

your solution provide me 1 everywhere i think i uses the Total value of Reliquat total

Hi @SebSchoon1 

 

According to the description, do you want to compare the value in Rank and the value in Reliquat total? Can you please explain the expected result you want to achieve based on the current sample data?

vjingzhang_0-1664182908072.png

 

Best Regards,
Community Support Team _ Jing

@v-jingzhang 

 

Hello sir,

 

It Works now with

 

REP FIN = 

IF([Rank]<>BLANK() && round([reliquat total],0)>=[Rank],1,BLANK())

I think there was an error sooner in my formaulas.

 

I have noticed something else with this.

 

It does not compute the column total, it is strange.

 

Here is the result.

SebSchoon1_0-1664184203685.png

As you can see it works in rows.

 

Then I do  ==> [Partie entière répartition] + [REP FIN] = [Répartition finale]

 

But total should be 13 not 9 .

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.