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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

DAX percentage column

Hi,

how to get a percentage column as NotOverdue. Example formula given below.

 Need help on this. 

 

IDCountryNotOverdue       Overdue          NotOverdue % ???
1Germany62Example formula:  (NotOverdue/Notoverdue+Overdue )*100
2India72
3Norway53
4Italy31
5Canada80
6USA70
7UAE61
8UK52
9France44
1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi MuraliPrasathS,

 

Please fin below y possible solution.

 

Step 1) Create a calculcated column with the following formula (my table is named t_2).

 

percentage not overdue = t_2[NotOverdue]/(t_2[NotOverdue]+t_2[Overdue])
 
picture 1.PNG

 

Step 2) Change the format of the column to percentage.

picture 2.PNG

 

I hope this helps. 

 

Best regards

Mikelytics

 

----------------------------------------------------------------------------------

 

Did I answer your questions? Please mark my post as solution.

 

Appreciate your Kudos

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

2 REPLIES 2
themistoklis
Community Champion
Community Champion

@Anonymous 

 

You can also use the divide function in a calculated column:

Column = DIVIDE('Table'[NotOverdue], 'Table'[Notoverdue]+'Table'[Overdue])

 

In a measure you can use the following formula:

Column = DIVIDE(SUM('Table'[NotOverdue]), SUM('Table'[Notoverdue])+SUM('Table'[Overdue]))

 

And then change the format of the column to Percentage

 

Mikelytics
Resident Rockstar
Resident Rockstar

Hi MuraliPrasathS,

 

Please fin below y possible solution.

 

Step 1) Create a calculcated column with the following formula (my table is named t_2).

 

percentage not overdue = t_2[NotOverdue]/(t_2[NotOverdue]+t_2[Overdue])
 
picture 1.PNG

 

Step 2) Change the format of the column to percentage.

picture 2.PNG

 

I hope this helps. 

 

Best regards

Mikelytics

 

----------------------------------------------------------------------------------

 

Did I answer your questions? Please mark my post as solution.

 

Appreciate your Kudos

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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