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
rgadbois
Frequent Visitor

Calculated Column based on measure

Hi,

 

I recently created a measure that creates a baseline for athletes' Day 1 testing results for a specific metric. We repeat this test on a daily basis, and I am attempting to see each day's % deviation from the baseline value. ie, ((Today - Baseline) / Baseline) expressed as a percentage. The measure I created works, and the Dax is below:

_RSI_BASELINE =
AVERAGEX(SUMMARIZE(FILTER(CMJ,[Date]=DATE(2022,9,21)),CMJ[Name],"RSI-modified [m/s]",AVERAGE('CMJ'[RSI-modified [m/s]]])),[RSI-modified [m/s]]])
 
I am struggling to determine how to create this DAX formula for this calculated column, as each column has numerous individuals in it, which makes filtering more difficult. Any assistance would be greaty appreciated!
 
This is within the same Table that this data will populate on a daily basis. The table in question resembles below:
NAMEDATERSIJUMP HEIGHT

Athlete 1

09/21/2022

0.530
Athlete 209/21/20220.6839.3
Athlete 109/22/20220.8532
Athlete 209/22/20220.732.4
Athlete 109/23/20220.4829
Athlete 209/23/20220.8941

 

 

I am struggling to determine how to create this DAX formula for this calculated column, as each column has numerous individuals in it, which makes filtering more difficult. Rather than create another measure for this on a daily basis, I need a Calculated Column so I can graph individuals' changes on a daily basis over time. Any assistance would be greaty appreciated!

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @rgadbois ,

 

Please try following DAX:

RSI_BASELINE = CALCULATE(AVERAGE('CMJ'[RSI]),FILTER('CMJ','CMJ'[Date] = EARLIER('CMJ'[Date])))

Percentage = DIVIDE([RSI] - [RSI_BASELINE], [RSI_BASELINE])

 

The result you want:

vyadongfmsft_0-1665638547611.png

 

Best regards,

Yadong Fang

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
v-yadongf-msft
Community Support
Community Support

Hi @rgadbois ,

 

Please try following DAX:

RSI_BASELINE = CALCULATE(AVERAGE('CMJ'[RSI]),FILTER('CMJ','CMJ'[Date] = EARLIER('CMJ'[Date])))

Percentage = DIVIDE([RSI] - [RSI_BASELINE], [RSI_BASELINE])

 

The result you want:

vyadongfmsft_0-1665638547611.png

 

Best regards,

Yadong Fang

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

 

Greg_Deckler
Community Champion
Community Champion

@rgadbois So like this?

_RSI_BASELINE =
  VAR __Athlete = [NAME]
RETURN
  MAXX(FILTER(CMJ, [NAME] = __Athlete && [Date]=DATE(2022,9,21)),[RSI])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

That does not work as there are numerous names within the [Name] column. There are 72 total athletes, each with one row added to the table on a daily basis.

Helpful resources

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

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.

Top Solution Authors