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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
WaleedAli
New Member

Calculate Percentage using only one column which has all values

Hi,
Hope you all are doing well
I have a column which includes total revenue and all the other fields e.g total project cost, project indirect cost and others these all are in one column as shown in image below. How can i calculate percentage of all the fields in that column out of total revenue which is also in that column as you can see in image.
alittle help required! Thanks in advance.

 

 

 

Expense.PNG

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

Measure = sum(Data[Total])

Measure 2 = divide([Measure],calculate([Measure],Data[Expense]="Revenue"))

Format Measure 2 as a %.


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

Hi @WaleedAli 

 

Try this:

percent =
DIVIDE (
    SUM ( Table[Value] ),
    CALCULATE (
        SUM ( Table[Value] ),
        FILTER ( ALL ( Table[Expense] ), Table[Expense] = "Total Revenue" )
    )//to divide the sum for each item in Expense over Total Revenue
)




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@danextian Hi, i appreciate your effort.
But it is still not working.
I have carried out total revenue value from column. But when i put that value in DIVIDE function it don't print out all the percentages of the remain field out of total revenue. Alittle help needed thanks.percentage.PNGpercentagecode.PNG

Hi @WaleedAli ,

 

What do you mean by the percentages of the remain field out of total revenue?

Also please share a sample data that we can easily manipulate - not an image.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.