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.
Dear all,
I'm trying to create a KPI indicator with below dax code:
@datanau001 Try this:
KPI Indicator Measure =
SWITCH(TRUE(),
SUM('V_SR_STATUS_LINES_SEC'[Total Audit Time Hrs]) = BLANK(),BLANK(),
SUM( 'V_SR_STATUS_LINES_SEC'[Total Audit Time Hrs] ) < SUM( 'V_SR_STATUS_LINES_SEC'[AMT SLA] ),"KPI Met",
"KPI Not Met"
)
@Greg_Deckler Hello Greg, thank you for your answer.
It worked partially. See below, now in some cases the comparisson is not correct.
In first two lines, it should be KPI Not met
Regards
Marcelo
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 |
---|---|
77 | |
73 | |
58 | |
35 | |
31 |
User | Count |
---|---|
99 | |
57 | |
56 | |
46 | |
40 |