Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I would like to create a column or measure that first caluclates the total sales for each customer, but then excludes certain customers.
Amount | Customer_no |
£865.40 | John |
£656.00 | Harry |
£223.67 | Harry |
£12,233.89 | John |
£23,423.87 | Rachel |
£767.34 | Rachel |
If all information is stored in the same table, and i wanted to know the total sales for all customers, but exclude John, how would I write that?
The table is named Customer_Ledger_Entries_Excel.
I believe I would start with CALCULATE(SUM(Customer_Ledger_Entries_Excel[Amount]),
Hi @RossS , please try below measure:
Total Sales (Excluding John) =
CALCULATE(
SUM(Customer_Ledger_Entries_Excel[Amount]),
Customer_Ledger_Entries_Excel[Customer_no] <> "John"
)
Thank you for this.
Can I also please ask, if I want to exclude data in the column that contains certain values, such as data that contain '0', how can I do this?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
122 | |
80 | |
47 | |
44 | |
35 |
User | Count |
---|---|
182 | |
83 | |
70 | |
47 | |
45 |