March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.
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]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
16 | |
16 | |
12 |