Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have data source that contains thousands of Sales Orders. Each Sales Order can have multiple lines on the order, so most of the data is the same across each row. However, there are a few differences and I would like to create a summary table that essentially rolls-up certain information for each unique Sales Order #.
Here is a very simple example of what I am looking to do.
When all is said and done I will have multiple columns that I will be performing basic math on, but I'd hope if I can do it for one, it will be easy to replicate.
Can anyone help me out?
Solved! Go to Solution.
@Anonymous
try this in PQ
Table 2 = SUMMARIZE('Table','Table'[sales order],"cost",sum('Table'[cost],"count",COUNTROWS('Table'))
or try this to use DAX to create a table
Proud to be a Super User!
@Anonymous
you can try group by in pq
or use DAX to create a new table
Table 2 = SUMMARIZE('Table','Table'[sales order],"cost",sum('Table'[cost]))
Proud to be a Super User!
Thank you! Is there a way I can also create a column that counts how many lines were essentially rolled u? In this case 3 for each.
@Anonymous
try this in PQ
Table 2 = SUMMARIZE('Table','Table'[sales order],"cost",sum('Table'[cost],"count",COUNTROWS('Table'))
or try this to use DAX to create a table
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |