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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

New Column with Only Distinct Values from Another Column

In my table I have a column, Day Count, that has number of days, with a given number potentially repeating ex. 36, 45, 23, 36. I want to create a new column, Distinct Day Count, that only stores the first time a value is mentioned to look something like the following: 36, 45, 23, (blank). What DAX function should I use for this new column?

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can try create a new table via 

new table = UNION( VALUES( 'Table'[Another column] ), {""})

 

vchenwuzmsft_0-1658830388926.png

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

ribisht17
Super User
Super User

@Anonymous 

 

ribisht17_0-1658514058635.png

 

Solution = if(RANKX(ALLEXCEPT('Table','Table'[Marks]),CALCULATE(min('Table'[Name])),,,Dense) > 1,"",SUM('Table'[Marks]))

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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