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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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