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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ltruong7
Regular Visitor

How to divide different column total while keeping slicer functionality?

Hi there,

 

I am currently calcuating the cut_qty divided by the sum of the original_order_qty field in order to get the FR impact by row which shows the correct result in the first row at .29% however, when I adjust my timeline slicer based off of the week/date the calculation still uses the sum of the original_ord_qty of all values instead of the specific values within the time range I've selected. I want to be able to look at the FR impact for a given timeframe, for example in the second picture I provided below, I want the cut_qty to be divided by 869,889 but the current calculation is dividng 869,889 by 16,655,086 (1st picture)

 

image.png

 

Calculation based off of total timeline

image.png

 

Calculation based off of 1 week within the year

image.png

 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Try this measure

=SUM(Fill_rate_Data[cut_qty])/CALCULATE(SUM(Fill_rate_Data[Original_order_qty]),ALL(Fill_rate_Data[Original_order_qty]))

Hope this helps.


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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.