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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
pro_x
Helper I
Helper I

Dax measure

Hi 

 

I have one column, only one column that has rejected and successful. Rejected is represented by 0 and successful is represented by 1. How can I calculate the percentage difference for rejected and successful separately?

13 REPLIES 13
Anonymous
Not applicable

@pro_x Can you share some sample data and expected out? That way people here can help you quickly.

 

Thanks

 

This is the data I have, rejected is represented by 0 and successful is represented by 1.

rejected.PNG

amitchandak
Super User
Super User

@pro_x , two measures likes

Mark all them as % column

successful =divide(calculate(countrows(Table),Table[col]=1),countrows(Table))


Rejected  =divide(calculate(countrows(Table),Table[col]=0),countrows(Table))

 

percentage difference = [successful] -[Rejected]

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi

Thank you,

How would i calculate the percentage change for Rejected?

Hi @pro_x ,

 

%Change will require your earlier period rejected Values.

 

You need to share sample data and expected output to get the correct solution.

 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Hi this is my sample data. Rejected is represented by 0and successful is represented by 1.

rejected.PNG

Hi @pro_x ,

 

What is the final output you want from the sample column shared.

 

Regards,

Harsh Nathani

Hi @harshnathani 

I want the percentage change

Hi @pro_x 

 

% change is difference of old percentage vs new percenatage. Like Sales Last year vs This year

 

You need to share a good sample of data with the earlier dates,

 

One column cannot detemine %change when there is no context to that column.

 

Do you want difference between successful and reject.??

 

Regards,

Harsh Nathani

Hi @harshnathani 

 

Yes, i want like sales last year vs this year.

e.g. rejected last year vs this year 

 

I only have that column with another column for date 

Hi @harshnathani 

 

Yes you're right, so how would i go about extracting the earlier period for rejected. I only have one column that has rejected and successful. Should i create a conditional column to extract rejected. How would i extract the earlier period and do a %change?

 

 

Hi @pro_x 

 

Your problem seems interesting, what do you mean % changes for successful and rejected seprately, changes on what basis?

Hi @mhossain 

 

%change on earlier period for rejected and successful. I want a measure that shows the %change for rejected over a certain period and a measure that shows % change for successful over a certain period. I have a column that has rejected and successful in one column.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.