Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Ok I may be going crazy and just missed something simple, but this is driving me crazy. I've searched and tried so many solutions at this point.
I want to be able to calculate the minimum Unit Price for a group, in the randomized pic below the group would be Item_ID
I can get this without an issue with calculate, min, all except Item_ID
The issue is that I also have roughly 50 columns that I still want to be filterable and affect the minimum value
For example, I want to add a page filter to exclude the category of cleaning.
The results would then go from this:
To this:
With the previous calculate it continues to show the min price as 50. I can't anticipate how the table may expand over the years so even if typing 50 columns into a subsequent all selected filter was doable it wouldn't work long term.
Any help would be greatly appreciated!
Solved! Go to Solution.
Hi @soshaughnessy7 ,
Try the following measure:
Minimum Values = MINX( FILTER(ALLSELECTED('Table'), 'Table'[ITEM_ID] = SELECTEDVALUE('Table'[ITEM_ID]) ), 'Table'[Unit Price])
Result in attach PBIX file.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @soshaughnessy7 ,
Try the following measure:
Minimum Values = MINX( FILTER(ALLSELECTED('Table'), 'Table'[ITEM_ID] = SELECTEDVALUE('Table'[ITEM_ID]) ), 'Table'[Unit Price])
Result in attach PBIX file.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you so much!!! I didn't realize that you could use selected value in that manner. I assumed it could only be assigned to literally selecting a value such as from a slicer. So close yet so far away!
Hi @soshaughnessy7 ,
It can be used in several ways depending on the context in this case since you are showing the ID in each row of your table visualization the value can be pickedup, if you want to show agregatted values you can change the measure for something similar to this:
Minimum Values = MINX( FILTER(ALLSELECTED('Table'), 'Table'[ITEM_ID] in VALUES( 'Table'[ITEM_ID]) ), 'Table'[Unit Price])
Just an example may not work properly 😄
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCheck out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!