Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Experts,
I have created a DAX code as below:
Solved! Go to Solution.
Hi @Anonymous ,
You can try the following sql:
select t.*,(select sum(ss) from (select customer,sum(sales) ss from customer group by customer ) t2 where t2.ss>=t.ss ) as Cumulated_Sales from (select customer,sum(sales) ss from customer group by customer) t order by ss desc
The column “customer” is a column which needs to “group by”. You need to match the columns in your own table.
Best Regards,
Eads
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can try the following sql:
select t.*,(select sum(ss) from (select customer,sum(sales) ss from customer group by customer ) t2 where t2.ss>=t.ss ) as Cumulated_Sales from (select customer,sum(sales) ss from customer group by customer) t order by ss desc
The column “customer” is a column which needs to “group by”. You need to match the columns in your own table.
Best Regards,
Eads
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |