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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
bob57
Helper IV
Helper IV

Calculate percentage column.

Good day,

I need to add a column to show the Total Credit Invoices percentage for each name by zone. For example, the first row of the new column would display 12.5% (Alice had 2 of the 16 credit invoices from zone A). There is a slicer for Zone and Date.

bob57_0-1601956718096.png

Here is a link to a .pbix file: https://1drv.ms/u/s!Agkx6hQs0NiX1BHLXrIY5klP-GIy?e=ASjIXM. I thought it would be easier to provide this than to clutter the post with tables and models. In a nutshell, I am simply counting the rows of the Sales Invoices table to determine the # of invoices: Total Invoices = COUNTROWS( 'Sales Invoices' ). Then I am filtering using the Invoice Type column to determine the number of credit invoices: Total Credit Invoices = CALCULATE( [Total Invoices], 'Sales Invoices'[Invoice Type] = "C" ). Now to calculate the percentages as described above has become a gate.

I'm grateful for the time and effort expended by the people on this forum.

Regards,

Bob

2 REPLIES 2
CNENFRNL
Community Champion
Community Champion

Hi, @bob57 , you may want to try this measure

% of Total Credit Invoices =
DIVIDE (
    [Total Credit Invoices],
    CALCULATE (
        [Total Credit Invoices],
        ALLEXCEPT ( 'Sales Invoices', Zones[Zone] )
    )
)

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Thank you! That did the trick and it makes perfect sense,

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.