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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX

Hi, 

I am having an idea but don't know how to execute in DAX. I want to calculate a new column where the product(s) that a specific cliënt has used before the latest product-use is returned. For example:

Product       Cliënt        Earlier product   Date
A               Mrs. Smit            B                 2018
B               Mrs. Smit            A                 2017
A               Mr. Apple           C                 2018

Can anyone help me? 

3 REPLIES 3
Anonymous
Not applicable

Why don't you do it in Power Query where such calculations belong? Please note that calculated columns should only be used if THERE IS NO OTHER OPTION. This is because calculated columns have a poor compression rate.

Best
Darek
Anonymous
Not applicable

Thanks for the feedback Darek. I am not very familiar with Power Query, but if I was, how would I need to go about it, huh?

 

Or if u know an R script or a DAX measure that allows me to do this without calculating a new column than I am all ears too.

Anonymous
Not applicable

Mate, the table you've given is not only too small to see what you need but I think the second row is incorrect. Why the heck do you have A in there as the earlier product? Please give us some proper data and explain correctly what you want.

Thanks.

Best
Darek

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.