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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
I have a table that shows below data.
Table A
Calmonth | Rank1 | Volume |
Jan-23 | 4 | 40 |
Feb-23 | 1 | 50 |
Mar-23 | 2 | 45 |
Apr-23 | 6 | 34 |
May-23 | 9 | 20 |
Jun-23 | 8 | 25 |
Jul-23 | 5 | 36 |
Aug-23 | 7 | 30 |
Sep-23 | 10 | 10 |
Oct-23 | 11 | 8 |
Nov-23 | 3 | 42 |
Rank1 is a measure.
Now based on above table, i need to get the Calmonth value where Rank1 = 1 in Table B.
So in this case i will get Feb 2023.
I created a new column in Table B & tried using Calculate with max & filter (where rank = 1) but it returns always Nov 2023.
I tried with different options using Lookup or selectedvalue but not getting required output.
how to resolve this issue?
Regards
Ankur
Solved! Go to Solution.
Hi @ankurshah01 ,
Current you can't create dynamic calculated column or table based on filter effect, they works on different levels and you can't use the child level to effect its parent.
You can try to use the following measure formula if helps:
formula =
VAR summary =
SUMMARIZE (
ALLSELECTED ( Table1 ),
[Calmonth],
"Rank", [Rank1],
"CalMonth",
CALCULATE (
SUM ( table2[Volume] ),
FILTER ( ALLSELECTED ( Table2 ), Table2[Calmonth] = [Calmonth] )
)
)
RETURN
MAXX ( FILTER ( summary, [Rank] = 1 ), [CalMonth] )
Notice: the data level of power bi(from parent to child level)
Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)
Regards,
Xiaoxin Sheng
Hi @ankurshah01 ,
Current you can't create dynamic calculated column or table based on filter effect, they works on different levels and you can't use the child level to effect its parent.
You can try to use the following measure formula if helps:
formula =
VAR summary =
SUMMARIZE (
ALLSELECTED ( Table1 ),
[Calmonth],
"Rank", [Rank1],
"CalMonth",
CALCULATE (
SUM ( table2[Volume] ),
FILTER ( ALLSELECTED ( Table2 ), Table2[Calmonth] = [Calmonth] )
)
)
RETURN
MAXX ( FILTER ( summary, [Rank] = 1 ), [CalMonth] )
Notice: the data level of power bi(from parent to child level)
Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)
Regards,
Xiaoxin Sheng
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |