cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
emmanuelkamara1
Helper I
Helper I

Need help

QUESTION.PNG

How can I create a column that return outstanding values for only values =1?  or how can I write a DAX function to devide the outstanding values for all (1's) and the total outstadning? something like this....outstanding value for (1's)/total outstanding value.
 

2 ACCEPTED SOLUTIONS
Pragati11
Super User
Super User

HI @emmanuelkamara1 ,

 

You can try the following DAX expression by creating a measure:

 

CalcMeasure = DIVIDE(
CALCULATE(SUM(tablename[Outstanding_Balance]), tablename[30+_or_not] = 1), SUM(tablename[Outstanding_Balance]), 0
)

 

Replace tablename in above expression with your table name and also check column names.

 

Thanks,

Pragati

 


My Blog: Data Vibe
Connect: LinkedIn
Connect: Twitter






If this helps, Appreciate a KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




View solution in original post

2 REPLIES 2
Pragati11
Super User
Super User

HI @emmanuelkamara1 ,

 

You can try the following DAX expression by creating a measure:

 

CalcMeasure = DIVIDE(
CALCULATE(SUM(tablename[Outstanding_Balance]), tablename[30+_or_not] = 1), SUM(tablename[Outstanding_Balance]), 0
)

 

Replace tablename in above expression with your table name and also check column names.

 

Thanks,

Pragati

 


My Blog: Data Vibe
Connect: LinkedIn
Connect: Twitter






If this helps, Appreciate a KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




View solution in original post

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Top Solution Authors