The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Dear community,
I really hope you are able to help me solve this problem.
I have a Measure:
Measure=
Var a=
MAXX(
FILTER(ALL(Table),Table[Column1]= SELECTEDVALUE(Table[Column1]) ),
Table[Column2]
)
Var b=
MAXX(
FILTER(
ALL(Table),
Table[Column1]= SELECTEDVALUE(Table[Column1])
&& Table[Column2]= a
),
Table[Column3]
)
RETURN
b
And I need to modify it into a column. This is possible?
Somebody could help me? Thanks!
Solved! Go to Solution.
My Column =
VAR currentColumn1 = 'Table'[Column1]
VAR a =
MAXX (
FILTER ( ALL ( Table ), Table[Column1] = currentColumn1 ),
Table[Column2]
)
VAR b =
MAXX (
FILTER ( ALL ( Table ), Table[Column1] = currentColumn1 && Table[Column2] = a ),
Table[Column3]
)
RETURN
b
Many thanks!!! Thank you very much, it has worked perfectly! 💜
My Column =
VAR currentColumn1 = 'Table'[Column1]
VAR a =
MAXX (
FILTER ( ALL ( Table ), Table[Column1] = currentColumn1 ),
Table[Column2]
)
VAR b =
MAXX (
FILTER ( ALL ( Table ), Table[Column1] = currentColumn1 && Table[Column2] = a ),
Table[Column3]
)
RETURN
b
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |