Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
How can i please create the new measure or column ? or any other approach i can use ?
Please let me know if you need additional infos.
Best,
Mous
Solved! Go to Solution.
Hi @Mous007
it is always a good idea to provide some sample data, or sample file, when you post a question. You will get a more accurate answer, and usually users of this forum is quicker at replying posts with sample data.
You can try something like this:
Number of requests with Complete status without failures =
VAR _allComplete =
CALCULATETABLE (
VALUES ( 'Full History Table'[TRACKING_NUMBER] ),
FILTER ( 'Full History Table', 'Full History Table'[STATUS] = "Complete" )
)
VAR _withFailures =
CALCULATETABLE (
VALUES ( 'Full History Table'[TRACKING_NUMBER] ),
FILTER ( 'Full History Table', NOT ( ISBLANK ( Failure ) ) )
)
VAR _withoutFailures =
EXCEPT ( _allComplete, _withFailures )
RETURN
COUNTROWS ( _withoutFailures )
You will probably have to change this statement, since I don't know how a failure is described:
CALCULATETABLE (
VALUES ( 'Full History Table'[TRACKING_NUMBER] ),
FILTER ( 'Full History Table', NOT ( ISBLANK ( Failure ) ) )
)
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi @Mous007
it is always a good idea to provide some sample data, or sample file, when you post a question. You will get a more accurate answer, and usually users of this forum is quicker at replying posts with sample data.
You can try something like this:
Number of requests with Complete status without failures =
VAR _allComplete =
CALCULATETABLE (
VALUES ( 'Full History Table'[TRACKING_NUMBER] ),
FILTER ( 'Full History Table', 'Full History Table'[STATUS] = "Complete" )
)
VAR _withFailures =
CALCULATETABLE (
VALUES ( 'Full History Table'[TRACKING_NUMBER] ),
FILTER ( 'Full History Table', NOT ( ISBLANK ( Failure ) ) )
)
VAR _withoutFailures =
EXCEPT ( _allComplete, _withFailures )
RETURN
COUNTROWS ( _withoutFailures )
You will probably have to change this statement, since I don't know how a failure is described:
CALCULATETABLE (
VALUES ( 'Full History Table'[TRACKING_NUMBER] ),
FILTER ( 'Full History Table', NOT ( ISBLANK ( Failure ) ) )
)
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi @sturlaws, thank you for your reply.
I managed to get the expected results by modfiying the forumla as follow:
Best,
Mous
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
41 | |
20 | |
19 | |
15 | |
15 |
User | Count |
---|---|
47 | |
28 | |
25 | |
17 | |
17 |