The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Guys,
I have to calculate percentage respective dimensions. we have "status" colunm and within we have "C"(Complience) and "N" (Non Complience) status. we need to calculate % if Complience status ='c' then it will give us Complience % respective Name dimension if Complience status ='N' then it will give us non Complience % respective Name dimension respective total of all status count. but what % we calculate(respective Complience/non Complience) result must be in one colunm.
this link for sample dataset :
Dax I have used:
1)Status Count = CALCULATE(COUNT(SLA[status]))
2)Complience Count = CALCULATE(COUNT( SLA[status]),FILTER(SLA,SLA[status]="C"))
3)Non Complience Count = CALCULATE(COUNT( SLA[status]),FILTER(SLA,SLA[status]="N"))
4)test21 = [Complience Count]/[Status Count]
5)test22 = [Non Complience Count]/[Status Count]
If getting any lead really Appricated.
Thanks.
User | Count |
---|---|
24 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |