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! It's time to submit your entry. Live now!
Company , Product name
Tatamotors, Tiago
Tatamotors , Alto
Tatamotors , Nexo
Maruti , Ciaz
Maruti , vagnour
Hundai , I20
Hundai , Creta
In above senario, Ihave to count total number of products by each company:
Below dax I have written but getting error as "The expression refrers to multiple column.Multiple columns can not be converted to a scalar value: Please suggest:
Groupby(Automobile,automobile[company],"Total number of Product", Countax(currentgroup(),automobile[product name]))
Solved! Go to Solution.
Hi Ashokkumarsah,
GROUPBY() function return a table with the selected columns for the groupBy_columnName arguments and the grouped by columns designated by the name arguments. So you should create a new table, not a calculate column or measure.
Regards,
Jimmy Tao
Hi Ashokkumarsah,
GROUPBY() function return a table with the selected columns for the groupBy_columnName arguments and the grouped by columns designated by the name arguments. So you should create a new table, not a calculate column or measure.
Regards,
Jimmy Tao
@Anonymous Not sure why itsn't working ? Hope you are trying it as a "New Table"
Test130Out = GROUPBY(Test130GroupCnt,Test130GroupCnt[Company],"ProductCount",COUNTAX(CURRENTGROUP(),Test130GroupCnt[ProductName]))
Proud to be a PBI Community Champion
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 43 | |
| 30 | |
| 26 | |
| 23 |
| User | Count |
|---|---|
| 135 | |
| 114 | |
| 58 | |
| 39 | |
| 35 |