Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
I want to get the max value by produts and year from the table below:
I can get Max value of products and date when I use quick measures like below:
it shows Max of every single data.
But I would like to see the result the max of products by year like the table below:
Can I get the support how I can get the result what I want to get?
Thanks in advance.
Solved! Go to Solution.
Hi @bluetronics ,
Here are the steps you can follow:
1. Create calculated column.
Year = YEAR('Table'[Date])
sum =
CALCULATE(SUM('Table'[Qty]),FILTER(ALL('Table'),'Table'[Product]=EARLIER('Table'[Product])&&'Table'[Year]=EARLIER('Table'[Year])))
2. Create calculated table.
Table 2 = SUMMARIZE('Table','Table'[Product],"Max",CALCULATE(MAX('Table'[sum]),FILTER('Table','Table'[Year]='Table'[Year])))
3. Result.
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @bluetronics ,
Here are the steps you can follow:
1. Create calculated column.
Year = YEAR('Table'[Date])
sum =
CALCULATE(SUM('Table'[Qty]),FILTER(ALL('Table'),'Table'[Product]=EARLIER('Table'[Product])&&'Table'[Year]=EARLIER('Table'[Year])))
2. Create calculated table.
Table 2 = SUMMARIZE('Table','Table'[Product],"Max",CALCULATE(MAX('Table'[sum]),FILTER('Table','Table'[Year]='Table'[Year])))
3. Result.
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot! it's very clear and works well. 👍
@bluetronics , I do not see 15 for A, It can be that last value for A
Try a formula like
calculate(max(Table[Qty]), filter(Table, Table[Date] = calculate(max(Table[Date]), allexcept(Table, Table[Product]))))
Pls. see the result and it does not work properly. thereis an error on a formula.
I tried but I don't think it works. 😞
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
81 | |
52 | |
37 | |
36 |