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.
Hi,
I've data as below sample, and I want to count on how many App Delay, Failed and Ontime.
As you can see one app have many batch if one batch failed then the app define as failed if there is no fail but delay then the app deifne as delay and if no fail and delay then the app define as ontime
I'd like to create measure from below table to show in Card KPI for Number of App Ontime, Delay and Failed
by below sample data it should show :
App Otime = 1
App Delay = 1
App Failed = 2
Total App = 4
Could you pelase advise how to write DAX for create meausre for App Otime, App Delay and App Failed using in Card KPI.
Thanks
Solved! Go to Solution.
Hi @s_chayaphon
Manually create FilterTable that contains the three App Status values:
Otime
Delay
Failed
then count measure would be
Count =
SUMX (
CROSSJOIN ( VALUES ( FilterTable[App Status] ), VALUES ( 'Table'[App] ) ),
INT (
FilterTable[App Status]
IN SELECTCOLUMNS (
TOPN ( 1, CALCULATETABLE ( 'Table' ), 'Table'[Status Code] ),
"@Status", 'Table'[Status]
)
)
)
Hi @s_chayaphon
Manually create FilterTable that contains the three App Status values:
Otime
Delay
Failed
then count measure would be
Count =
SUMX (
CROSSJOIN ( VALUES ( FilterTable[App Status] ), VALUES ( 'Table'[App] ) ),
INT (
FilterTable[App Status]
IN SELECTCOLUMNS (
TOPN ( 1, CALCULATETABLE ( 'Table' ), 'Table'[Status Code] ),
"@Status", 'Table'[Status]
)
)
)
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 |
---|---|
11 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
12 | |
11 | |
10 | |
9 |