Forum Discussion
KPI Visual: Measure in Target Goal Field
- 3 years ago
Hi Aniya,
Thank you for responding. I believe I figured it out. I had to create two measures: one for Current MTD premium and one for Prior Year MTD Premium in order for both values to show correctly on the KPI:
Prior Year MTD Prem = CALCULATE(SUMX(FILTER(ALLSELECTED(Table), 'Table'[Current MTD/Prior Year MTD] = "Prior Year MTD"),'Table'[Premium]))This paired with another measure for Current MTD allows me to place both values on the KPI that also interacts with all of the Slicers:
I appreciate your response!
Hi , kxj
According to your description, you want to get the sum of the [Premium] value when [Current MTD/Prior Year MTD]="Prior Year MTD" and it can be filtered by the [Region Code],[Segment Code],[Premium] slicers?
If this , you can try to use this dax :
Measure = SUMX( FILTER('Table','Table'[Current MTD/Prior Year MTD]="Prior Year MTD" ) ,[Premium])+0
Then we can get the result as follows:
If this method does not meet your needs, you can provide us with your desired output sample data in the form of tables, so that we can better help you solve the problem.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Aniya,
Thank you for responding. I believe I figured it out. I had to create two measures: one for Current MTD premium and one for Prior Year MTD Premium in order for both values to show correctly on the KPI:
Prior Year MTD Prem = CALCULATE(SUMX(FILTER(ALLSELECTED(Table), 'Table'[Current MTD/Prior Year MTD] = "Prior Year MTD"),'Table'[Premium]))
This paired with another measure for Current MTD allows me to place both values on the KPI that also interacts with all of the Slicers:
I appreciate your response!