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

Creating Calculate Percentage column

Hi,

 

I want to be able to create a column which calcluates the percentage using 2 exisiting columns: Brand Opt-in / Total Entries * 100.  I have tried several DAX formulas but have failed to shape it in the right syntax.

 

 

Any help would be appreciated

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

 

you can try 

Percentage = CALCULATE(SUM(Table[Brand Opt-in]))/CALCULATE(SUM(Table1[Total Entries]))*100.
You create a calculated measure instead of column.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please make sure you’ve enabled the % formatting for the column as below.

Here I’m suing DIVIDE function instead of “/” in case of infinity appears.

DIVIDE(numerator,denominator,0),

 

Column = DIVIDE([Diff Pop],Table1[Total population],0)

per.png

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi @Anonymous,

 

you can try 

Percentage = CALCULATE(SUM(Table[Brand Opt-in]))/CALCULATE(SUM(Table1[Total Entries]))*100.
You create a calculated measure instead of column.

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.