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 folks,
I need some urgent help in calculating the average age of case per month and by category from a granular table.
The calculation that i am using is showing me the same value for all months. Visula below.
Matrix desired like the below screen grab..
Solved! Go to Solution.
HI @Anonymous ,
You can try to use the following measures if they suitable for your requirement:
AVG Score = CALCULATE ( AVERAGE ( Table[Score] ), ALLSELECTED ( Table ), VALUES ( Table[PatientID] ), VALUES ( Table[Patient name] ) ) Count Patient = CALCULATE ( Countrows(Table), ALLSELECTED ( Table ), VALUES ( Table[PatientID] ), VALUES ( Table[Patient name] )
If above not help, can you please share some sample data for test?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
HI @Anonymous ,
You can try to use the following measures if they suitable for your requirement:
AVG Score = CALCULATE ( AVERAGE ( Table[Score] ), ALLSELECTED ( Table ), VALUES ( Table[PatientID] ), VALUES ( Table[Patient name] ) ) Count Patient = CALCULATE ( Countrows(Table), ALLSELECTED ( Table ), VALUES ( Table[PatientID] ), VALUES ( Table[Patient name] )
If above not help, can you please share some sample data for test?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi ChristoR1,
If you see the same values for every row, you always need to check if there is a relationship. In this case between the months and the cases. Can you share your data model?
OK, let me rephrase this... the relationship is currently not used in your dax formula.
If you share your data model I may be able to help sort it out. Can you send a small pbix file?
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |