Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I am having issues getting all the VAR.P and STDEV.P Values for previous dates. The Measure I am using works with a date slicer to find the previous values, but when I try to get a Column I have issues.
The end goal is to find the MAX, MIN and AVG of VAR.P and STDEV.P...
I am using these measures:
_m_VAR.P = VAR.P(Table[Values])
_m_STDEV.P = STDEV.P(Table[Values])
I can see the data I need in the slicer. Below are the examples:
Any help would be appreciated.
Thank you,
Solved! Go to Solution.
Hi @Walt ,
Based on your description, I have created a simple sample:
Please try:
_STDEV.P = CALCULATE(STDEV.P('Table'[Value]),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])))
_VAR.P = CALCULATE(VAR.P('Table'[Value]),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])))
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Walt ,
You mentioned The end goal is to find the MAX, MIN and AVG of VAR.P and STDEV.P before. What is the exact meaning of MAX, MIN and AVG? For value or for VAR.P and STDEV.P?
Please provide more details about your problems or give a simple example aboult the expected result.
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It's sorted. It was a request that was not needed. Thank you.
Hi @Walt ,
Based on your description, I have created a simple sample:
Please try:
_STDEV.P = CALCULATE(STDEV.P('Table'[Value]),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])))
_VAR.P = CALCULATE(VAR.P('Table'[Value]),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])))
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-jianboli-msft,
Thank you, this helped me to see the values for each date, however I am still having issues finding the AVG, MIN, and MAX of the values when filtered by catigories.
Hi @Walt
when you add the date to the filter contaxt apparently you're drilling through to the row level. The Stdv and the Var of a single value is 0. What values are you expecting to see here?
I am trying to get the VAR and STDV for each date. The end goal is to use those values for each date and find the Min, Max and AVG.
something like this...
Date : VAR
June 30th : 17.93
March 1st : 18.73
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |