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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Values function not working

Hello, I have a problem with values function. I have 3 columns: partner_id ; date_from ; user_id. In date_from column, there are dates: 1/1/2011 ; 4/1/2018 ; 10/1/2018. The main idea is to create dax formula that calculates for how long user was working with different partners and if that user is still working with partners now.

If I filter out in power querry just two different (distinct) dates from 'date_from' column , then my dax formula works without no problems and gives the correct result. If I filter out in power query three or more different (distinct)dates, then formula gives an error " a table of multiple values was supplied where a single value was expected."


My question is: how to rewrite this formula that new calculated column "Date_to" it could take three dates together and compare them?asasas.png

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

@Anonymous,

 

You may just use MIN Function instead.

Community Support Team _ Sam Zha
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-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may just use MIN Function instead.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

You saved so much time with that simple solution, thanks and it works very dynamically ! 🙂

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.

Top Solution Authors