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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.