Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Total of Distinct Values

Hello all!

 

I'm new on Power BI and i have the follow issue:

 

I have the table below:

IDMonthTypeCount
1JanuaryX

1

2JanuaryX1
3JanuaryX1
4JanuaryX1
5JanuaryX1
6JanuaryY1
7JanuaryY1
8JanuaryY1
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:

MonthTypeCount
JanuaryX

5

JanuaryY3
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

IDMonthTypeCount
1JanuaryX

1

1JanuaryX

1

1JanuaryX

1

2JanuaryX1
2JanuaryX1
3JanuaryX1
4JanuaryX1
4JanuaryX1
5JanuaryX1
6JanuaryY1
7JanuaryY1
7JanuaryY1
7JanuaryY1
8JanuaryY1

 

Thats why i use the measure:

Count = DISTINCTCOUNT('Table'[Type])

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

sumx(summarize(Table,Table[month],table[Type],"_1",DISTINCTCOUNT('Table'[ID])),[_1])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try like

sumx(summarize(Table,Table[month],table[Type],"_1",DISTINCTCOUNT('Table'[ID])),[_1])

ryan_mayu
Super User
Super User

@Anonymous 

 

Please try this

Measure 3 = CALCULATE(DISTINCTCOUNT(Sheet8[ID]),ALLEXCEPT(Sheet8,Sheet8[ID],Sheet8[Month],Sheet8[Type]))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors