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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Victorybarzo
Frequent Visitor

Count of different new species

Good afternoon all!

I have a table (excel sheet) that contains daily data of observed animal species. I need to create (dax or m language) formula that identifies, for each month, the number of species that were observed for the first time, other words, New observed species. I believe the best way is to crate a measure, but i'm not sure.

I've tried several ones, including chat gpt and other AI tips, but was not successfull with them.

Thank you!

1 ACCEPTED SOLUTION
v-jialongy-msft
Community Support
Community Support

Hi @Victorybarzo 

 

Based on your needs, I have created the following table.

vjialongymsft_0-1710211544869.png

 

You want to observe new species every month, you can put the month into the slicer and put the following dax formula into the card visual.

vjialongymsft_1-1710211677245.png

Measure = DISTINCTCOUNT('Table'[animal])

 

 

This is the result you want

vjialongymsft_2-1710211726913.png

vjialongymsft_3-1710211737002.png

 

 

Best Regards,

Jayleny

 

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

3 REPLIES 3
v-jialongy-msft
Community Support
Community Support

Hi @Victorybarzo 

 

Based on your needs, I have created the following table.

vjialongymsft_0-1710211544869.png

 

You want to observe new species every month, you can put the month into the slicer and put the following dax formula into the card visual.

vjialongymsft_1-1710211677245.png

Measure = DISTINCTCOUNT('Table'[animal])

 

 

This is the result you want

vjialongymsft_2-1710211726913.png

vjialongymsft_3-1710211737002.png

 

 

Best Regards,

Jayleny

 

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

 

lucadelicio
Super User
Super User

Can you upload the pbix file?
You can upload it on https://wetransfer.com/
Thank you.

Luca D'Elicio
Victorybarzo
Frequent Visitor

Oh, sorry, i have more than one line for each Day, because several species are observed per Day.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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