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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
NoaLowraee
Frequent Visitor

Minimum of value based only on slicer filters

Hello ,

I have a problem on the calculation of the minimum of a column.

I want to find the origine of the last puchased project by (client, year , month and program ). 

My measure I want to display is : 

     for each origin how much client got the last purchased project through them ? 

 
Below my exemple. 

 

NoaLowraee_4-1672134958044.png

 

 

I need to get 1 or partenaire site and 0 for call center 

same thing when filtring on a specific program  I need 0 on 

 

NoaLowraee_5-1672134999405.png

 

The dax I used for the Min is as below 

min = calculate( DISTINCTCOUNT(Stores[Client]) , filter( Stores , Stores[Partitionbyyear] = Min((Stores[Partitionbyyear]))))
 

NoaLowraee_6-1672135060684.png

 



Any suggestions will be much appreciated

Thank you in advance

 

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @NoaLowraee 

I do not understand.

1. What is the meaning of the Last Created column?

2. Why are you using MIN( ) if you want the latest date??

3. What would be the expected result if you select Paris? And New York?

4. Why Store1 appears first in Norway and then in Singapore???

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

 

Hello, 

Thank you for your reply.

I updated My Topic to be more concise possible.

Thank you in advance for your reply.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors