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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
NadiaLR1234
Helper I
Helper I

Calculate difference based on text column

Hi

Is there a way for me to calculate the difference between averages on the below senario ?

I have 4 groups (0-3 Days, 4-7 Days, 8-14 Days and 15+ Days) - I want to calculate what the difference between any specified group is - so example difference between Avg 0-3 Days and Avg 4-7 Days will be on first line -543 etc - how do I write the dax measure/column to calculate this difference ? even if I have to have multiples that is fine as long as it gives the correct difference ?

 

NadiaLR1234_0-1660661039451.png

 

1 ACCEPTED SOLUTION

hi again, 

Please look at this pbix example in the following LINK 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


View solution in original post

6 REPLIES 6
NadiaLR1234
Helper I
Helper I

Hi - I need to show the difference between the different categories so I can show the lost/gained savings on each category  and then when they move a certain % over to a selected one what the difference will be

Hello again NadiaLR1234

Can you share a draft of the pretended output 
The 4 groups are column in the model? 
we need to do all difference ?

  • 0-3 Days vs 4-7 Days
  • 0-3 Days vs 8-14 Days
  • 0-3 Days vs 15+ Days
  • 4-7 Days vs  8-14 Days
  • 4-7 Days vs 15+ Days
  • 8-14 Days vs 15+ Days

 

BR

Bruno 

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Something like this ? 

 

NadiaLR1234_0-1660807417415.png

 

hi again, 

Please look at this pbix example in the following LINK 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Thank you will try it this way

onurbmiguel_
Power Participant
Power Participant

Hello NadiaLR1234, 

You need to  create independent measures, but why do you need all the difference? 
It will be some measures, and how the values must appear to the users? 
How the total will work?

Why not to expose this information in a visual / graph that explain to users the up and down of values.

 

BR 

Bruno

 

 

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.