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 have created a Measure (Resource_Count) which will do Group By and it is working as expected but i have a requirement for one specific filed (Area3) as follows.
When i select Area3 , irrespective of selected Region (Central or East), it should show the combined value as mentioned below.
Sample data:
Area | Region | Role | TestedDay | Resources |
Area1 | East | Developer | 1 | Wenj |
Area1 | Central | Support | 2 | George |
Area1 | Pacific | Tester | 3 | Ross |
Area1 | East | Developer | 4 | Suvarna |
Area2 | Central | Support | 1 | Mark |
Area2 | Pacific | Tester | 2 | Dev |
Area2 | East | Developer | 3 | Mahi |
Area3 | Central | Support | 4 | George |
Area3 | Pacific | Tester | 1 | Suvarna |
Area3 | East | Developer | 2 | Ross |
Area3 | Central | Support | 3 | Praj |
Area3 | Pacific | Tester | 4 | Tim |
Area3 | East | Developer | 1 | Dev |
Area3 | Central | Tester | 2 | Mark |
Regards
Santosh Kumar
Solved! Go to Solution.
Hi , @SantoshKumar
You can try to add some judgement in dax , like this:
Measure = var _special= CALCULATE( AVERAGEX(SUMMARIZE('Table','Table'[TestedDay],"CalMeasure",DISTINCTCOUNT('Table'[Resources])),[CalMeasure]) , ALL('Table'[Area]))
var _normal = AVERAGEX(SUMMARIZE('Table','Table'[TestedDay],"CalMeasure",DISTINCTCOUNT('Table'[Resources])),[CalMeasure])
return
IF(SELECTEDVALUE('Table'[Area])="Area3" && SELECTEDVALUE('Table'[Region]) in {"Central","East"} , _special , _normal)
Then we can only get the special data when we select Area3 , irrespective of selected Region.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , @SantoshKumar
According to your description, do you mean you want to show the total averagex in above?
If this , you can try to use this:
Measure = CALCULATE( AVERAGEX(SUMMARIZE('Table','Table'[TestedDay],"CalMeasure",DISTINCTCOUNT('Table'[Resources])),[CalMeasure]) , ALL('Table'[Area]))
The result is as follows:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@v-yueyunzh-msft No, your condition applies for entire set. i have ask for specific for Area3 only. such as
When i select Area3 , irrespective of selected Region (only for Central or East), it should show the combined and for other selections it should as normal values only.
Hi , @SantoshKumar
You can try to add some judgement in dax , like this:
Measure = var _special= CALCULATE( AVERAGEX(SUMMARIZE('Table','Table'[TestedDay],"CalMeasure",DISTINCTCOUNT('Table'[Resources])),[CalMeasure]) , ALL('Table'[Area]))
var _normal = AVERAGEX(SUMMARIZE('Table','Table'[TestedDay],"CalMeasure",DISTINCTCOUNT('Table'[Resources])),[CalMeasure])
return
IF(SELECTEDVALUE('Table'[Area])="Area3" && SELECTEDVALUE('Table'[Region]) in {"Central","East"} , _special , _normal)
Then we can only get the special data when we select Area3 , irrespective of selected Region.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 |
---|---|
96 | |
95 | |
80 | |
74 | |
66 |
User | Count |
---|---|
130 | |
106 | |
105 | |
86 | |
72 |