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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Super User
Super User

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Users online (751)