Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello Team,
am trying to get count of priority am using below code but it is not working.
Solved! Go to Solution.
Great!
Please accept the solution(s) that resolved your question in order to mark it as accepted so future readers can find it more quickly.
The cross join construction feels odd to me.
I think I'd try writing this DAX more like this:
Inflow_Priority =
CALCULATE (
COUNTROWS ( Source ),
FILTER ( ALL ( Source ), Source[Priority_is] = 1 ),
TREATAS (
SUMMARIZE ( CompanyRegionAU, CompanyRegionAU[Company], CompanyRegionAU[Region] ),
Source[company], Source[Region]
),
TREATAS ( VALUES ( Queue[Queue] ), Source[Queue] )
)
Hello Alex,
I tried your solution but it is not working. I need Priority 1 and Priority 2 in different columns.
Regards,
Chandrashekar B
Hello Alex,
Sorry it is my mistake(Format issue it was text and turned to Number) and it is working now.
Great!
Please accept the solution(s) that resolved your question in order to mark it as accepted so future readers can find it more quickly.
Hello Team,
Please see attached example report Sample Report as am trying to get priority count am using below code but it is not working.
@Chandrashekar I am guessing you are expecting this
To reach the following outcome, you need two measures
_countrows =
VAR _name =
MAX ( Table3[Name] )
VAR _location =
MAX ( Table3[Location] )
VAR _tbl =
CROSSJOIN (
SELECTCOLUMNS ( { _name }, "name", [Value] ),
SELECTCOLUMNS ( { _location }, "location", [Value] )
)
RETURN
CALCULATE (
COUNTROWS ( FILTER ( Table1, Table1[Priority] = 1 ) ),
TREATAS ( _tbl, Table1[Name], Table1[Location] )
)
Sum = SUMX(Table3,[_countrows])
Hello,
I need to Priority1 and Pririty 2 in two different columns.
Regards,
Chandrashekar B
Hi, Is this your desired result?
Hello,
I need to Priority1 and Pririty 2 in two different columns.
Regards,
Chandrashekar B
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
15 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |