Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
I have a simple table with 3 columns as shown in the attached picture:
- I tried to use Group By (in Query Editor) and could get the results in the column F, but not G.
please help
Solved! Go to Solution.
Probably.. Because DAX makes new table using other data table(s). (in this case, the first table)
However, if the first table is also made from some other raw data, you can skip the first table and make the 2nd table using the raw data. Of cuase, you need different DAX code for it.
Thanks
Hi,
Regards
For number of product, we should use COUNT function and for Number of Cancelled Product, you can use SUM function.
If expressed in DAX, the table can be made as below
=========================
ADDCOLUMNS(
SUMMARIZE( OrderTable, OrderTable[OrderNumber] ),
"TotNumberOfProduct", CALCULATE( COUNT( OrderTable[OrderNumber] ) ),
"NumberOfCancellation", CALCULATE( SUM( OrderTable[Cancel] ) )
)
Thank you for a fast answer!
I tried this solution and got a new table with the result i wanted - Awesome!
So, if i want to transform/make my existing table to look like the new table then i have to do it in the query editor (with M language), isnt it?
Creating an additional table is abit messy right now , since i have too many tables and I am starting to loose track of them :).
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
13 | |
10 | |
9 | |
8 |
User | Count |
---|---|
15 | |
13 | |
12 | |
11 | |
11 |