The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Tables:
1. Incidents table → list of incidents, with fields including Metric ID and State(Closed, In progress, etc).
2. Metrics table → primary key Metric ID, field Value (monthly max allowed).
I want → in the Metrics table, create a calculated column that shows the count of incidents with Status = "Closed" for each Metric ID based on the dates defined in the slicer. (01/01/2025 - 07/31/2025)
Expected result:
In table metrics, there is a unique row with the value of the monthly max allowed ticket.
In table Incidents, there are 5 Incidents resolved, which fall under the parameters
the total debug I want to consolidate the sum of the incidents. The count should be 5, as it is the sum of the debug count(Incidents table), but the result of the formula is 9. It is not taking into consideration the visual filter and it is showing all the data available in the incident table.
Solved! Go to Solution.
Hi @M3nbk
calculated columns are static calculations that never change.
You need a measure in this case, here is the code
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Use a measure, not a calculated column, to make slicers work.
ClosedIncidentCount :=
CALCULATE(
COUNTROWS(Incidents),
Incidents[State] = "Closed"
)
This will respect slicers like date range and Metric ID.
If you want to sum debug counts instead of just counting rows:
TotalDebugCount :=
CALCULATE(
SUM(Incidents[DebugCount]),
Incidents[State] = "Closed"
)
Hi @M3nbk
calculated columns are static calculations that never change.
You need a measure in this case, here is the code
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
User | Count |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
9 | |
5 |