cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

Dax IF

Hi, 

 

I need a help!

 

Made a calculation table1 below.

in last column i took only + numbers from beside with this dax1 below.

 

i want to make a graph based on the last column but it doesn't count as number although it's number type already..

 

any idea?

 

dax 1 

How.PNG

 

table 1

아오.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Dax IF

Hi,

Try this measure

current surplus = SUMX(VALUES('Matrix_Ident Library'[Ident Code]),IF([Current Surplus (Received-BOM)]>0,[Current Surplus (Received-BOM)],""))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Highlighted
Helper I
Helper I

Re: Dax IF

I think that is because you are specifying the space in the formula at the end " ". Try to specify the value at the end or remove the space between the quotations "".

 

Highlighted
Post Patron
Post Patron

Re: Dax IF

Hi thanks for the reply.

i've already tried remove space between "" and put 0. but still it doesn't count as number... :'(

Highlighted
Community Support
Community Support

Re: Dax IF

Hi @colourfullife ,

 

What is the data type of your [Current Surplus (Recived-Rom)] column?

Can you convert the data type manually?

y1.PNG

If you still can't solve it, please give a sample data and I will help you test it.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Post Patron
Post Patron

Re: Dax IF

hi @v-lionel-msft 

 

thanks for your reply. i tried and it didn't work as i wanted.

i shared my file in the link. please check and be so appreciated with any help..!

native file 

 

thank you!

CL

Highlighted
Super User IV
Super User IV

Re: Dax IF

Hi,

Try this measure

current surplus = SUMX(VALUES('Matrix_Ident Library'[Ident Code]),IF([Current Surplus (Received-BOM)]>0,[Current Surplus (Received-BOM)],""))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors