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.
Hi Team,
I want to select the % of completed out off status.
User needs Slicers as Project column.
If user selects A from Slicer = total completed / Total count.
Project | Sub Project | Planned Start Date | Planned Closed Date | Actual Start Date | Actual Closed Date | Status |
A | AA | 1/12/2020 | 1/12/2021 | 1/2/2021 | Completed | |
A | AB | 1/1/2020 | 1/6/2020 | 1/4/2020 | 1/10/2020 | Inprogress |
A | AC | 1/6/2021 | 1/12/2021 | Completed | ||
B | BA | 1/5/2021 | 1/12/2021 | Delayed | ||
B | BB | 1/4/2020 | 1/6/2020 | 1/6/2020 | 1/8/2021 | Completed |
B | BC | 1/3/2021 | 1/5/2021 | 1/4/2021 | 1/6/2021 | Inprogress |
B | BD | 1/3/2021 | 1/5/2021 | 1/4/2021 | 1/6/2021 | Inprogress |
Solved! Go to Solution.
[% Completed] =
DIVIDE(
CALCULATE(
COUNTROWS( T ),
KEEPFILTERS( T[Status] = "completed" )
),
COUNTROWS( T )
)
Warning:
Using one-table models can lead to wrong numbers being calculated even by good formulas. Please always use star schemas.
@Anonymous
Try the following:
Measure =
var completed = CALCULATE( COUNTROWS('Table'), Table[Status] = "Completed" )
var total =CALCULATE( COUNTROWS('Table'), ALLEXCEPT(Table, Table[Project] )
Return
DIVIDE(completed , total)
[% Completed] =
DIVIDE(
CALCULATE(
COUNTROWS( T ),
KEEPFILTERS( T[Status] = "completed" )
),
COUNTROWS( T )
)
Warning:
Using one-table models can lead to wrong numbers being calculated even by good formulas. Please always use star schemas.
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 |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |