cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

New column flag for all customers who are in debt

Hi Experts,

 

I would like help on creating a column or flag to get all customers who are in debt

So if a customers Sum(Sales) < 0 then "In Debt" "Not in Debt"

 

I would like to filter customers to see this. Is this possible?

 

Aaron

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

You could use the below. Create a New Table with the below DAX.

 

New_Summary_Table:= ADDCOLUMNS(SUMMARIZECOLUMNS(Table[Groupby_Column1],"Sum Value", SUM(Aggregation_Column)),"Debt/Not Debted",IF([Sum Value]<0,"Debt","No Debt"))

Best Regards,
Vignesh M

If what I suggested worked for you feel free to Drop a "Kudos" and Consider to "Accept as Solution" if I solved your Issue 🙂

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi,

 

I assume you already have the SUM() as a column in your existing Table. If that is the case, You can do this using an IF Statement.

 

Indebted/ Unobligated (New Column) :=IF(Table[Sum_Column]<0,"Indebted","Unobligated" )

If you don't have Sum() as a Column in your existing Table, then You can use SUMMARIZECOLUMNS() Function to calculate the sum for his requirment.

 

Best Regards,
Vignesh M

If what I suggested worked for you feel free to Drop a "Kudos" and Consider to "Accept as Solution" if I solved your Issue 🙂

Anonymous
Not applicable

Hi Vignesh,

 

Please could you talk me through the summarized columns formula. I have tried but its not working.

Anonymous
Not applicable

Hi,

 

You could use the below. Create a New Table with the below DAX.

 

New_Summary_Table:= ADDCOLUMNS(SUMMARIZECOLUMNS(Table[Groupby_Column1],"Sum Value", SUM(Aggregation_Column)),"Debt/Not Debted",IF([Sum Value]<0,"Debt","No Debt"))

Best Regards,
Vignesh M

If what I suggested worked for you feel free to Drop a "Kudos" and Consider to "Accept as Solution" if I solved your Issue 🙂

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors