This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hi good day can someone help me on my measure, i want to count the total Active from Active/Inactive column,
Trade Column = FWL
used_BASE/INJECTED = BASE
RESULT
Thank you
Solved! Go to Solution.
Hey @AllanBerces,
Based on your requirement to count records where Active/Inactive = "Active", Trade = "FWL", and used_BASE/INJECTED = "BASE", here is the solution:
Create a new measure with the following DAX formula:
Count of Active FWL BASE =
CALCULATE(
COUNT('YourTableName'[used_BASE/INJECTED]),
'YourTableName'[Active/Inactive] = "Active",
'YourTableName'[Trade] = "FWL",
'YourTableName'[used_BASE/INJECTED] = "BASE"
)
If you prefer using COUNTROWS instead of COUNT:
Count of Active FWL BASE =
COUNTROWS(
FILTER('YourTableName',
'YourTableName'[Active/Inactive] = "Active" &&
'YourTableName'[Trade] = "FWL" &&
'YourTableName'[used_BASE/INJECTED] = "BASE"
)
)
This measure will dynamically count all rows meeting your three specified criteria and update automatically when filters are applied to your report.
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
Total Active & FWL‑BASE =
CALCULATE(
COUNTROWS('YourTableName'),
'YourTableName'[Active/Inactive] = "Active",
'YourTableName'[Trade] = "FWL used_BASE/INJECTED = BASE"
)
Hi @AllanBerces
Can you please try the below dax to get you result ?
Hey @AllanBerces
Thank you for the kind recognition - always happy to contribute to our community's success!
Best Regards,
Jainesh Poojara | Power BI Developer
Total Active & FWL‑BASE =
CALCULATE(
COUNTROWS('YourTableName'),
'YourTableName'[Active/Inactive] = "Active",
'YourTableName'[Trade] = "FWL used_BASE/INJECTED = BASE"
)
Hey @AllanBerces,
Based on your requirement to count records where Active/Inactive = "Active", Trade = "FWL", and used_BASE/INJECTED = "BASE", here is the solution:
Create a new measure with the following DAX formula:
Count of Active FWL BASE =
CALCULATE(
COUNT('YourTableName'[used_BASE/INJECTED]),
'YourTableName'[Active/Inactive] = "Active",
'YourTableName'[Trade] = "FWL",
'YourTableName'[used_BASE/INJECTED] = "BASE"
)
If you prefer using COUNTROWS instead of COUNT:
Count of Active FWL BASE =
COUNTROWS(
FILTER('YourTableName',
'YourTableName'[Active/Inactive] = "Active" &&
'YourTableName'[Trade] = "FWL" &&
'YourTableName'[used_BASE/INJECTED] = "BASE"
)
)
This measure will dynamically count all rows meeting your three specified criteria and update automatically when filters are applied to your report.
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 25 | |
| 20 | |
| 20 | |
| 20 | |
| 20 |