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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
united2win
Helper III
Helper III

DAX - Division for Total Careers

Hello

I have the following table that shows a running total and the total amount of each BatchNumber. My question is whether it is possible to create a dynamic measure that can divide the running total by the total in the first table. Would this DAX measure be dynamic in a way that would change when adding a slicer? for example, filtering by country or record types.

Please see below the ppix file:

https://drive.google.com/file/d/1eUoq55NCDNpoptZkvpXWPpPUafSV18iJ/view?usp=sharing

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @united2win ,

 

Based on your description, you can create a measure as follows.

 

division = FORMAT(DIVIDE('WFRegistrations'[Running Total],'WFRegistrations'[TOTALS]),"0.0000")

calculated_TOTALS = CALCULATE(COUNTA(WFRegistrations[Id]),AllEXCEPT('WFRegistrations',WFRegistrations[BatchNumber],WFRegistrations[Registration Type]))

 

Result:

v-yuaj-msft_0-1606202349068.png

 

 

‘calculated_TOTALS’ refers to the total count of IDs of all countries in the selected ‘Registration Type’.

You can use “ctrl”+click to choose multiple sections.

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

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
Anonymous
Not applicable

Hi @united2win ,

 

Based on your description, you can create a measure as follows.

 

division = FORMAT(DIVIDE('WFRegistrations'[Running Total],'WFRegistrations'[TOTALS]),"0.0000")

calculated_TOTALS = CALCULATE(COUNTA(WFRegistrations[Id]),AllEXCEPT('WFRegistrations',WFRegistrations[BatchNumber],WFRegistrations[Registration Type]))

 

Result:

v-yuaj-msft_0-1606202349068.png

 

 

‘calculated_TOTALS’ refers to the total count of IDs of all countries in the selected ‘Registration Type’.

You can use “ctrl”+click to choose multiple sections.

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

Anonymous
Not applicable

Hi @united2win ,

 

It's not very clear. Could you please kindly provide sample data (or sample models) and your desired outcome?

 

Best Regards,
Yuna

Hi, Apologies I've de-sensitized the data. Please find the google drive link. Ideally I would like to apply a country filter. However currently you can see the percentages are too low. Both the numerator and the denominator should take into account the filtered current. Also, can we fill in the blanks for the running total?

https://drive.google.com/file/d/1eUoq55NCDNpoptZkvpXWPpPUafSV18iJ/view?usp=sharing

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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