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
Sashwato
Helper II
Helper II

Need help on DAX Calculated Column

Hello all,

 

I am working on a test file to replicate a solution. I have the following columns in my model. The image is displayed below:

 

Sashwato_0-1627394325678.png

I would like to know if we can have Username - Danny be displayed just once (if record available) for every instance of a Month end period. For example - here for period ending 1/31/2021 - we have Danny thrice in Username column. Can we show it just once for any EARLIEST instance he is market on a Client project? We need to keep in mind, whenever the new period starts - Danny becomes eligible to be counted again if any one instance is found.

 

Please let me know if any solution is available. Any help is appreciated!

 

Regards!

Sas

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

Hi, @Sashwato ;

You could a create a calculate column as follows:

 

Merged = IF([Client]=CALCULATE(MIN([Client]),ALLEXCEPT('Table','Table'[Date],'Table'[Username])),[Username])

 

The final output is shown below:

vyalanwumsft_0-1628151654544.png

Best Regards,
Community Support Team_ Yalan Wu
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-yalanwu-msft
Community Support
Community Support

Hi, @Sashwato ;

You could a create a calculate column as follows:

 

Merged = IF([Client]=CALCULATE(MIN([Client]),ALLEXCEPT('Table','Table'[Date],'Table'[Username])),[Username])

 

The final output is shown below:

vyalanwumsft_0-1628151654544.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ryan_mayu
Super User
Super User

@Sashwato 

Could you please provide the expected output in details?

maybe you can create a new table?

summarize(table, merged)

 





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.