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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Help with adding amounts by category

Hello

I need to help please to create a dax formula that adds the sales of my channel column:

image.png

I don't know if it's possible

of anteman

1 ACCEPTED SOLUTION

You need the following measure:

% por canal =
VAR _ALL = CALCULATE ([Measure Sum Deuda], ALL(fTable[Canal])

RETURN

DIVIDE([Measure Sum Deuda]), _ALL)

Format this measure as a % in the ribbon

 

then create the line chart using this measure and add fTable[Canal] as the legend





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Thanks a lot! for the help!

Best regards

Syndicate_Admin
Administrator
Administrator

thank you very much, but to be able to make a line chart that shows in % ?

Nc777_0-1663867215434.png

that I need to replicate

Best regards

You need the following measure:

% por canal =
VAR _ALL = CALCULATE ([Measure Sum Deuda], ALL(fTable[Canal])

RETURN

DIVIDE([Measure Sum Deuda]), _ALL)

Format this measure as a % in the ribbon

 

then create the line chart using this measure and add fTable[Canal] as the legend





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PaulDBrown
Community Champion
Community Champion

You can show the totals by "Canal" in any number of ways: for example using a simple SUM measure or using ALLEXCEPT as a filter in a measure:

Measure Sum Deuda = 
SUM(fTable[DEUDA TOTAL])
SUM ALLEXCEPT = 
CALCULATE([Measure Sum Deuda], ALLEXCEPT(fTable, fTable[Canal]))

visuals.png

 

I've attached the sample PBIX file





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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