The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have the below DAX which returns the count of [Order/line] if the order is open during a time period. (shows total open orders for each month in history based on [CREATE_DATE] and [Order Closed Date1]). I need to adjust the DAX to SUM the calculated column [Order_Qty_adj]. I was hoping I could just adjust [ID] to [Order_Qty_adj] and tmpTable1 to SUMX on [ID].
Solved! Go to Solution.
I ended up deleting the measure entirely and starting from scratch. Because the Order_Qty_adj is a calculated column this was the route I believe best suited.
I ended up deleting the measure entirely and starting from scratch. Because the Order_Qty_adj is a calculated column this was the route I believe best suited.
Hi @bstark1287 ,
Maybe you can try the following code:
VAR tmpTable1 = GROUPBY(tmpTable,[ID],"Count",SUMX(CURRENTGROUP(),SUM([Order_Qty_adj])))
You can refer to the following link:
Power BI Group By | How to Use GROUPBY DAX Function in Power BI? (wallstreetmojo.com)
If the information above cannot meet your requirement, can you offer some data example or picture?
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
18 | |
18 | |
17 | |
15 | |
11 |
User | Count |
---|---|
35 | |
34 | |
19 | |
18 | |
14 |