Forum Discussion
Minimum value subtotal based on specific dates
- 5 years ago
Hi, sunah132
Thank you for sharing.
Please try the below.
Min Value measure =
SWITCH (
TRUE (),
ISINSCOPE ( 'Table'[item] ), SUMX ( VALUES ( 'Table'[Date] ), MIN ( 'Table'[Value] ) ),
SUM ( 'Table'[Value] )
)Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Sorry, I meant to explain this below. I applied your suggestion that had total value on the column but rows still appear to have a minimum value.
Hi, sunah132
Thank you for sharing.
Please try the below.
Min Value measure =
SWITCH (
TRUE (),
ISINSCOPE ( 'Table'[item] ), SUMX ( VALUES ( 'Table'[Date] ), MIN ( 'Table'[Value] ) ),
SUM ( 'Table'[Value] )
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
- sunah1325 years ago
Helper I
Thank you so much! It was very helpful.👍
- sunah1325 years ago
Helper I
Hello, Thank you for your suggestion and It worked very well.
I faced the problem that there was no pricing made on a certain date. It resulted in a total of 0 while they bring summing up the minimum values. Could you please see how it should be?
I appreciate your help!
- Jihwan_Kim5 years ago
Super User
Hi, sunah132
Please try the below.
Min Value measure =SWITCH (TRUE (),ISINSCOPE ( 'Table'[item] ), SUMX ( VALUES ( 'Table'[Date] ), CALCULATE( MIN ( 'Table'[Value] )) ),SUM ( 'Table'[Value] ))- sunah1325 years ago
Helper I
Thank you! I have one last question regarding the Matrix calculation. When there's drill down like this, adding Calculate at SUMX would sum up the entire Hub but not in route level. I have tried adding SUM('Table'[Value]) as route but the visual failed to do so.