Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Everyone,
How can i get the min value from this table created in Dax:
EVALUATE
var t = SUMMARIZE(
F_CUSTO_FRANGO,
F_CUSTO_FRANGO[Ano-Mes],
"Total", sum(F_CUSTO_FRANGO[Total Final]
)
)
return
t
I need the min of the sum, i think a a summarize table and get the min, i don't know if is better way..
Solved! Go to Solution.
Hi,
You could use this measure:
MinSum =
MINX (
SUMMARIZE (
F_CUSTO_FRANGO,
F_CUSTO_FRANGO[Ano-Mes],
"Total", SUM ( F_CUSTO_FRANGO[Total Final] )
),
[Total]
)
Regards
=
MINX(
SUMMARIZECOLUMNS(
F_CUSTO_FRANGO[Ano-Mes],
"@Total", SUM( F_CUSTO_FRANGO[Total Final] )
),
[@Total]
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
@marcio_fornari
To aggregate over a virtual table, you can use an iterator function: with the dame code you have, add the following:
EVALUATE
VAR t =
SUMMARIZE (
F_CUSTO_FRANGO,
F_CUSTO_FRANGO[Ano-Mes],
"Total", SUM ( F_CUSTO_FRANGO[Total Final] )
)
RETURN
MINX ( t, [Total] )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hello All,
I have the similar requirement where I want Sum of Minimum QTY in each SFC ( there are multile record at SFC level ) from Summarize Table
I have tried Measure as
Thank you so much everyone!
it's to easy! OMG 😅
@marcio_fornari
To aggregate over a virtual table, you can use an iterator function: with the dame code you have, add the following:
EVALUATE
VAR t =
SUMMARIZE (
F_CUSTO_FRANGO,
F_CUSTO_FRANGO[Ano-Mes],
"Total", SUM ( F_CUSTO_FRANGO[Total Final] )
)
RETURN
MINX ( t, [Total] )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
=
MINX(
SUMMARIZECOLUMNS(
F_CUSTO_FRANGO[Ano-Mes],
"@Total", SUM( F_CUSTO_FRANGO[Total Final] )
),
[@Total]
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi,
You could use this measure:
MinSum =
MINX (
SUMMARIZE (
F_CUSTO_FRANGO,
F_CUSTO_FRANGO[Ano-Mes],
"Total", SUM ( F_CUSTO_FRANGO[Total Final] )
),
[Total]
)
Regards
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |