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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Bidya
New Member

DAX

Hello Connection can you please help me with this power bi Dax
• Calculate revenue contribution of producer (if there is a producer X with 10,000 revenue out of total 100,000; when I select producer X result should show 10%; in the same way with revenue)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Bidya ,

 

Due to I don't know your data model, here I create a sample to have a test.

vrzhoumsft_0-1684221600100.png

Measure:

Percentage = 
VAR _REVENUE =
    CALCULATE ( SUM ( 'Table'[Revenue] ) )
VAR _TOTAL =
    CALCULATE ( SUM ( 'Table'[Revenue] ), ALL ( 'Table' ) )
RETURN
    DIVIDE ( _REVENUE, _TOTAL )

Result:

vrzhoumsft_1-1684222279934.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
grazitti_sapna
Super User
Super User

For getting the revenue contribution.

You can Create a new measure 

REVENUE CONTRIBUTION- DIVIDE(SUM(TABLENAME[REVENUE]),CALCULATE(SUM(TABLENAME[REVENUE]),ALL(TABLENAME[PRODUCER]))) * 100

** make sure revenue and producer columns are in numeric and in text.

Hope this will help.

Anonymous
Not applicable

Hi @Bidya ,

 

Due to I don't know your data model, here I create a sample to have a test.

vrzhoumsft_0-1684221600100.png

Measure:

Percentage = 
VAR _REVENUE =
    CALCULATE ( SUM ( 'Table'[Revenue] ) )
VAR _TOTAL =
    CALCULATE ( SUM ( 'Table'[Revenue] ), ALL ( 'Table' ) )
RETURN
    DIVIDE ( _REVENUE, _TOTAL )

Result:

vrzhoumsft_1-1684222279934.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.