Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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"))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |