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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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