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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Flavio2021
Frequent Visitor

Complex card coming for double distincount

Hi could be that is only for me complex, but the result that I would is

 

Starting from a table were I have several s/n and several ticket of assistance unique, I would like to got the number of all the s/n that have more of 1 ticket of assistance opened

 

Suggestion ??

 

Power bi Card.JPG

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Flavio2021 , Create a new measure like

 

countx(filter(summarize(Table, Table[Serial Number], "_1", distinctCOUNT(Table[Assitance])), [_1]>1),[Serial Number])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

v-stephen-msft
Community Support
Community Support

Hi @Flavio2021 ,

 

Create the following two measures

Measure = CALCULATE(COUNT('Table'[Assistance]),ALLEXCEPT('Table','Table'[Serial number]))
S/n with more of 1 ticket = CALCULATE(DISTINCTCOUNT('Table'[Serial number]),FILTER(ALL('Table'),[Measure]>1))

6.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @Flavio2021 ,

 

Create the following two measures

Measure = CALCULATE(COUNT('Table'[Assistance]),ALLEXCEPT('Table','Table'[Serial number]))
S/n with more of 1 ticket = CALCULATE(DISTINCTCOUNT('Table'[Serial number]),FILTER(ALL('Table'),[Measure]>1))

6.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Flavio2021 , Create a new measure like

 

countx(filter(summarize(Table, Table[Serial Number], "_1", distinctCOUNT(Table[Assitance])), [_1]>1),[Serial Number])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.