Forum Discussion
Calculate min value based on user Selection
- Anonymous1 year ago
Thanks for the reply from lbendlin , please allow me to provide another insight:
Hi, SQuazi
Regarding the issue you raised, my solution is as follows:
1.Firstly, I have created your sample data based on your description as follows:
2. Below are the measure I've created for your needs:
Min_D_Factor_All = MINX( { IF(ISFILTERED('Table'[Product]), MIN('Table'[D Product]), BLANK()), IF(ISFILTERED('Table'[Category]), MIN('Table'[D Category]), BLANK()), IF(ISFILTERED('Table'[Country]), MIN('Table'[D Country]), BLANK()), IF(ISFILTERED('Table'[Level]), MIN('Table'[D Level]), BLANK()), IF(ISFILTERED('Table'[Skill]), MIN('Table'[D Skill]), BLANK()) }, [Value] )3.Here's my final result, which I hope meets your requirements.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes, Product, Category, Country, Level and Skills are page level filters
Thanks for the reply from lbendlin , please allow me to provide another insight:
Hi, SQuazi
Regarding the issue you raised, my solution is as follows:
1.Firstly, I have created your sample data based on your description as follows:
2. Below are the measure I've created for your needs:
Min_D_Factor_All =
MINX(
{
IF(ISFILTERED('Table'[Product]), MIN('Table'[D Product]), BLANK()),
IF(ISFILTERED('Table'[Category]), MIN('Table'[D Category]), BLANK()),
IF(ISFILTERED('Table'[Country]), MIN('Table'[D Country]), BLANK()),
IF(ISFILTERED('Table'[Level]), MIN('Table'[D Level]), BLANK()),
IF(ISFILTERED('Table'[Skill]), MIN('Table'[D Skill]), BLANK())
},
[Value]
)
3.Here's my final result, which I hope meets your requirements.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.