Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I am pretty new and Power BI and I am researching a lot but I'm having trouble creating a solution for this. I have this table in Power Query
And I'm trying to produce something like this:
I'm looking for the COUNTIFS function but I am not sure what is its equivalent in DAX. Thanks for your help.
Solved! Go to Solution.
Ok, let's take this step by step...
A) We need to unpivot the columns in Power Query. This involves
Like this:
B) Creating dimension tables for both Facility and Value field:
Like this:
Repeat the process for the "Value" field and load into the model
C) Create relationships between each field in the Dimnesion Tables and their corresponding field in the Fact table (In my example named "Facilities Table")
D) Build the matrix:
1. Create the measure to count the Values:
Count Value Measure = COUNT('Facilities Table'[Value])
2. Build the matrix using the fields from the dimension tables: dFacility in the Rows bucket; dValue in the Columns Bucket; and add the [Count Value Measure] to the values bucket to get:
I've attached the sample PBIX file
Proud to be a Super User!
Paul on Linkedin.
Ok, let's take this step by step...
A) We need to unpivot the columns in Power Query. This involves
Like this:
B) Creating dimension tables for both Facility and Value field:
Like this:
Repeat the process for the "Value" field and load into the model
C) Create relationships between each field in the Dimnesion Tables and their corresponding field in the Fact table (In my example named "Facilities Table")
D) Build the matrix:
1. Create the measure to count the Values:
Count Value Measure = COUNT('Facilities Table'[Value])
2. Build the matrix using the fields from the dimension tables: dFacility in the Rows bucket; dValue in the Columns Bucket; and add the [Count Value Measure] to the values bucket to get:
I've attached the sample PBIX file
Proud to be a Super User!
Paul on Linkedin.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |