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.
Hello all!
I'm new on Power BI and i have the follow issue:
I have the table below:
ID | Month | Type | Count |
1 | January | X | 1 |
2 | January | X | 1 |
3 | January | X | 1 |
4 | January | X | 1 |
5 | January | X | 1 |
6 | January | Y | 1 |
7 | January | Y | 1 |
8 | January | Y | 1 |
TOTAL | 2 |
On colunm "Count" i'm using the measure:
Count = DISTINCTCOUNT('Table'[Type])
Now, all i need is count how many Type i have on Month, for exemple:
Month | Type | Count |
January | X | 5 |
January | Y | 3 |
Total | 8 |
And i don't know how to do it 😞
Somebody help me, please
Note: The original table, the column Type repeat inside the column ID
ID | Month | Type | Count |
1 | January | X | 1 |
1 | January | X | 1 |
1 | January | X | 1 |
2 | January | X | 1 |
2 | January | X | 1 |
3 | January | X | 1 |
4 | January | X | 1 |
4 | January | X | 1 |
5 | January | X | 1 |
6 | January | Y | 1 |
7 | January | Y | 1 |
7 | January | Y | 1 |
7 | January | Y | 1 |
8 | January | Y | 1 |
Thats why i use the measure:
Count = DISTINCTCOUNT('Table'[Type])
Solved! Go to Solution.
@Anonymous , Try like
sumx(summarize(Table,Table[month],table[Type],"_1",DISTINCTCOUNT('Table'[ID])),[_1])
@Anonymous , Try like
sumx(summarize(Table,Table[month],table[Type],"_1",DISTINCTCOUNT('Table'[ID])),[_1])
@Anonymous
Please try this
Measure 3 = CALCULATE(DISTINCTCOUNT(Sheet8[ID]),ALLEXCEPT(Sheet8,Sheet8[ID],Sheet8[Month],Sheet8[Type]))
Proud to be a Super User!
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 |
---|---|
103 | |
101 | |
84 | |
77 | |
66 |
User | Count |
---|---|
135 | |
109 | |
104 | |
83 | |
73 |