Forum Discussion
donodackal
4 years agoHelper I
Help creating new DAX Column
Hi there The below table is a summary of multiple invoices summed up against the supplier. I would like to create a new column that broadly categories each supplier based on their Total Spend (Th...
- Anonymous4 years ago
Hi donodackal ,
Please try:
Categories = var _sum=CALCULATE(SUM('Table'[ Total Spend ]),ALLEXCEPT('Table','Table'[Supplier Name])) return SWITCH(TRUE(), _sum>1000000 ,"million-dollar club",_sum>=200000 ,"200K to 1M club",_sum>=25000 ,"25k to 200k club","Penny value club")Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
4 years agoSuper User
Hi,
Share the download link of your PBI file.
- donodackal4 years agoHelper I
The PBI file has sensitive data.
- Ashish_Mathur4 years agoSuper User
Anonymise the data in the PBI file and share the download link. Ensure your measures are already written in that file.