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
hi,
im trying to display a formula in a KPI chart in my power bi app.
the calculation is the Max number of my "ID" column divided by a static number.
i have 2 questions;
how would i include a static number in my dataset? im used to using qlik where you can define a variable and then call that variable in the calucaltion, is there a similar method in power bi?
2. how would i show the calucaltion in a KPI/text box?
i.e something like this is what i want to display:
where 170 is the max number of my ID column and 317 is a static number that can be updated manually.
thanks!
Solved! Go to Solution.
Hi @Anonymous ,
You will be required to create below 3 measure :
1) Max of ID = MAX('Table'[ID]) -> This will give you the maximum value from ID column
2) Static value = 317 -> This will store a static value as per your requirement
3) Calculation = CONVERT([Max of ID],STRING)&"/"&CONVERT([Static value],STRING) -> This will help you show the calculation in KPI card/textbox as below -
Please accept the solution if this answers your query.
Thanks!
Avantika
Hi @Anonymous ,
You will be required to create below 3 measure :
1) Max of ID = MAX('Table'[ID]) -> This will give you the maximum value from ID column
2) Static value = 317 -> This will store a static value as per your requirement
3) Calculation = CONVERT([Max of ID],STRING)&"/"&CONVERT([Static value],STRING) -> This will help you show the calculation in KPI card/textbox as below -
Please accept the solution if this answers your query.
Thanks!
Avantika
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
98 | |
65 | |
54 |