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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
soumyaiyer
Helper IV
Helper IV

Matrix table visual DAX for division

Hi,

 

I have the below Matrix Table showing the data weekly for two groups.

 

Need help with DAX to divide New Hire values/Tenured Values

 

Screenshot 2025-10-22 131508.png

 

1 ACCEPTED SOLUTION

Then these measure patterns will work

T = calculate(sum(Data[Amount]),Data[Type] = "Tensured")

NH = calculate(sum(Data[Amount]),Data[Type] = "New Hire")

D = divide([T],[NH])

Hope this helps.


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

View solution in original post

10 REPLIES 10
v-pgoloju
Community Support
Community Support

Hi @soumyaiyer,

 

Thank you for reaching out to the Microsoft Fabric Forum Community, and special thanks to @Gabry and @Ashish_Mathur  for prompt and helpful responses.

 

Just following up to see if the Response provided by community members were helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.

 

Best regards,
Prasanna Kumar

 

soumyaiyer
Helper IV
Helper IV

I have added a IF statement for the tenure days and created two groups Tenured and New Hire.Screenshot 2025-10-23 091007.png

 

Then these measure patterns will work

T = calculate(sum(Data[Amount]),Data[Type] = "Tensured")

NH = calculate(sum(Data[Amount]),Data[Type] = "New Hire")

D = divide([T],[NH])

Hope this helps.


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

Hi,

 

The values for the New Hire and Tenured is the AHT in Total Seconds, am trying to divide the New Hire AHT seconds by Tenured AHT seconds week by week. 

 

Eg : Week 41  - 

689
580

 

The % should be 

18.79%

soumyaiyer_0-1761684980133.png

 

What problem do you face with the measures which i suggested?


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

Hi,

 

After creating the measure suggested, the % increase is not calculated as below. Need help how to use ABS function here to get the correct % increase.

 

Screenshot 2025-10-29 103838.png

 

 

 

 

 

Eg : Week 41  - 

689
580

 

The % should be 

18.79%

 

Cannot understand your requirement unless you share the file.


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

No problem thank you for helping me! I created a new measure to get the output I am looking for. 

Ashish_Mathur
Super User
Super User

Hi,

If new hire and tenured are measures that you have written, then write this measure

Measure = divide([new hired],[tenured])


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

Hey buddy,
I’m not entirely sure how your data is structured or what your desired output is, but take a look at the PBIX file, it might help clarify things.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors