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
Hi all,
I wanted to create a measure to return the "Wait Time" value when the Store ID = National.
The table called ("Performance_Latest") is like:
Store ID Wait Time
111 80%
222 90%
National 88%
The formula i used is:
Solved! Go to Solution.
@Anonymous , I doubt some other filter is there.
Check if this gives data. It means some other filter is there
WaitTime_National = CALCULATE(AVERAGE(Performance_Latest[Wait Time]),filter(all(Performance_Latest), Performance_Latest[Store ID]="National"))
Hello @Wenlu_Zhang,
I get the part - "National"... What do you mean?
That may be affecting, as it is a text applied to the ID for the CALCULATE.
Best regards!
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hi @Anonymous ,
You measure should work
Try this
WaitTime_National = CALCULATE(SUM(Performance_Latest[Wait Time]), Performance_Latest[Store ID]="National")
else are there any filters
Regards,
Harsh Nathani
@Anonymous , I doubt some other filter is there.
Check if this gives data. It means some other filter is there
WaitTime_National = CALCULATE(AVERAGE(Performance_Latest[Wait Time]),filter(all(Performance_Latest), Performance_Latest[Store ID]="National"))