Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi @Sriku ,
You can create a measure as below, please find the attachment for the details.
Max of Sales =
VAR _tab =
SUMMARIZE (
'Table',
'Table'[ID],
"maxSales",
CALCULATE (
MAX ( 'Table'[Sales] ),
FILTER (
'Table',
'Table'[ID] = SELECTEDVALUE ( 'Table'[ID] )
&& 'Table'[Profit] = 1
)
)
)
RETURN
SUMX ( _tab, [maxSales] )
In addition, there are some good resources can help you learn DAX.
Best Regards
Did you try just MAX(Table[Sales]) ? That should work in this scenario, even with the Profit column slicer.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi Pat, I am new and learning DAX, Can you please help in this
@Sriku ,
Create a measure
sumx(values(Table[ID]),Calculate( Max(Table[Sales])))
plot with ID in visual
Thanks for prompt response: If there a profit column need to filter by 1 and find max
Please help this
Hi @Sriku ,
You can create a measure as below, please find the attachment for the details.
Max of Sales =
VAR _tab =
SUMMARIZE (
'Table',
'Table'[ID],
"maxSales",
CALCULATE (
MAX ( 'Table'[Sales] ),
FILTER (
'Table',
'Table'[ID] = SELECTEDVALUE ( 'Table'[ID] )
&& 'Table'[Profit] = 1
)
)
)
RETURN
SUMX ( _tab, [maxSales] )
In addition, there are some good resources can help you learn DAX.
Best Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |