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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
RonLieuw
Helper I
Helper I

Calculating minimum value in a row with several columns

HI there, I am trying to calcuate the min/max price of  articles sold by stores.

The first picture shows my (pivoted) input table

The second picture the matrix, here I want to add a column with the minimum price for the article.

 

Input tableInput tableMatrixMatrix

 

 

1 ACCEPTED SOLUTION

I believe that you want something like my Multi-Column Aggregations (MC Aggregations) Quick Measure:

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Multi-Column-Aggregations-MC-Aggregations/m-...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
mmatarrita
Regular Visitor

Hi,

I'm not sure if I can revisit this topic.

Model proposed works fine, now I need a table showing the stores and the total quantity of articles that have the minimum price. The idea would be every article is assigned to the store with min and getting a report about what articles are assigned to each store.

Could you help me please?

Greg_Deckler
Super User
Super User

See if my multi-column aggregations will work (MC Aggregations): https://community.powerbi.com/t5/Quick-Measures-Gallery/Multi-Column-Aggregations-MC-Aggregations/m-...

 

Not sure I fully understand what you are going for. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg, I down loaded your pbix file and loved it how you added all the aggregations.

But my source is different, Sample pbix file, I don't have the value1 ... value4 as columns is my input data.

Can you me help with my setup?

RonaldL

Hi, is it at all possible to aggregate data (e.g minimum, maximum) in a source as shown in the url.

https://www.dropbox.com/s/9hejfcpvnn24xb7/FPK-Back-2-School-2017-final.pbix?dl=0

Thanks

RonaldL

I believe that you want something like my Multi-Column Aggregations (MC Aggregations) Quick Measure:

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Multi-Column-Aggregations-MC-Aggregations/m-...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.