Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello Guys..
i want to calculate the rank of column based on condition
below is my sample dataset
| FW | Csat_num | CSAT_Denom |
| 2023-32 | 0 | 0 |
| 2023-32 | 1 | 1 |
| 2023-32 | 0 | 1 |
| 2023-32 | 1 | 2 |
| 2023-35 | 0 | 1 |
| 2023-34 | 0 | 1 |
| 2023-32 | 0 | 0 |
| 2023-34 | 1 | 1 |
| 2023-32 | 1 | 1 |
| 2023-34 | 1 | 1 |
| 2023-32 | 1 | 1 |
expected result is
1.CSAT=if(count(fw)<5,"",csat_num/csat_denom)
2.Rank of CSAT
how to implement this using DAX
Please help
Thanks
Pradnya
Solved! Go to Solution.
Hi @Anonymous ,
Try to add the following two metrics:
CSAT = IF(COUNTROWS('Table (2)') > 5,DIVIDE( SUM('Table (2)'[Csat_num]) , SUM('Table (2)'[CSAT_Denom])))
Ranking = RANKX(SUMMARIZE(ALLSELECTED('Table (2)'), 'Table (2)'[FW], " @CSAT", [CSAT]),[ @CSAT],[CSAT])
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
Try to add the following two metrics:
CSAT = IF(COUNTROWS('Table (2)') > 5,DIVIDE( SUM('Table (2)'[Csat_num]) , SUM('Table (2)'[CSAT_Denom])))
Ranking = RANKX(SUMMARIZE(ALLSELECTED('Table (2)'), 'Table (2)'[FW], " @CSAT", [CSAT]),[ @CSAT],[CSAT])
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsShare feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 44 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 108 | |
| 105 | |
| 37 | |
| 26 | |
| 26 |