Forum Discussion
Anonymous
5 years agoNot applicable
Selecting a group by one value and creating an average
I'm fairly new to Power BI and writing dax, but reading answers in this forum has helped me a lot. So, faced with a new problem I can't work out I thought I'd ask for some help. I have a spreadsh...
- 5 years ago
Ashish_Mathur
Super User
5 years agoAnonymous
5 years agoNot applicable
Ashish_MathurThis is exactly what I was looking for, thank you very much!
In case anyone else is wondering it was a three measure combination of:
Count of facilities = DISTINCTCOUNT(Data[Facility Name])
Facilities with shortages = CALCULATE(COUNTROWS(Data),Data[Shortage]="Yes")
Measure = COUNTROWS(FILTER(VALUES(Data[Facility Name]),[Facilites with shortages]>0))/[Count of facilities]
- Ashish_Mathur5 years ago
Super User
You are welcome.