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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
robertspot
New Member

Get minimum value for a specific Id

Hello,

 

I want to show the minimum date value for an specific Id, and this value should change on depends of the filter dates selected by the user.

 

I tried several solutions (index, row_number, summarized table, etc), but none of them seems to work. I think the main problem is the dynamic filter, so I need to recalculate the minimum value each time the user change the filter. So in the attached screenshot each filter is a particular selection made by the user and the result set that should retrieve.

 

 PowerBIExample.JPG

 

Any ideas?

 

Thank you!

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@robertspot

 

I think a simple MEASURE like

 

=MIN(TABLENAME[Date])   should work here

 

May be i am missing something

 

 


Regards
Zubair

Please try my custom visuals

View solution in original post

4 REPLIES 4
v-yuezhe-msft
Employee
Employee

@robertspot,

Zubair_Muhammad's DAX works, but it seems that there are some issues with your desired result of first two filters. Please check the following screenshots.

No filter & filter3No filter & filter3filter1filter1filter2filter2

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yuezhe-msft,

 

You're right @Zubair_Muhammad 's DAX works, I just was dragging and additional column and the aggregation didn't seems correct. But I've run some tests and works fine.

 

Thank you both

Zubair_Muhammad
Community Champion
Community Champion

@robertspot

 

I think a simple MEASURE like

 

=MIN(TABLENAME[Date])   should work here

 

May be i am missing something

 

 


Regards
Zubair

Please try my custom visuals

Hi @Zubair_Muhammad,

 

Thanks for your reply.

 

I’m afraid it won’t work because I need the min date, but for each ID. That means, if no filter is applied the results would be:

 

    • ID: 1; Date: 01/01/2018
    • ID: 2; Date: 02/01/2018
    • ID: 3; Date: 04/01/2018

  

Regards

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.