Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hey,
i have GDP data with colunms : Country, GDP, Year.
i used a Dax functions to calculate GDP Growth %, and ranked it In the Growth Rank Column.
Here's what i want to do :
I want to show the Year of highest Growth % in a Card Visual (from the Table, it shows 1981), but can't seem to know how best to do it.
This is a table visual i created on power bi.
Table Visual
Apart from Year and GDP Column every other Column is calculated using DAX.
Here are the formulas :
Solved! Go to Solution.
Hi,
I am not sure how your data model looks like, but please try to put the below measure into a card visualization.
expected measure for card visual: =
SUMMARIZE (
FILTER (
ADDCOLUMNS (
ALL ( 'Countries GDP 1960-2020'[Year] ),
"@ranking", [Growth Rank]
),
[@ranking] = 1
),
'Countries GDP 1960-2020'[Year]
)
Hi,
I am not sure how your data model looks like, but please try to put the below measure into a card visualization.
expected measure for card visual: =
SUMMARIZE (
FILTER (
ADDCOLUMNS (
ALL ( 'Countries GDP 1960-2020'[Year] ),
"@ranking", [Growth Rank]
),
[@ranking] = 1
),
'Countries GDP 1960-2020'[Year]
)
This is the Solution !!!
it worked.
Thanks for Helping Out.
add colnum
LastYearGDP = lookupvalue('Countries GDP 1960-2020'[GDP], 'Countries GDP 1960-2020'[Year], 'Countries GDP 1960-2020'[Year] - 1, 'Countries GDP 1960-2020'[Country], 'Countries GDP 1960-2020'[Country])
add measure
BestGDP = maxx(values( 'Countries GDP 1960-2020'[Year]), calculate(DIVIDE(sum('Countries GDP 1960-2020'[GDP])-sum('Countries GDP 1960-2020'[LastYearGDP]),sum('Countries GDP 1960-2020'[LastYearGDP]))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |