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.
Hi,
I have 2 tables with these columns/measures (there is a one to many relationship between accounts and salesorders):
accounts
- column 'estimated_sales' (estimated sales value)
salesorders
- measure 'total_sales_this_year' = sum(salesorders[amount])
- column 'amount' (sales amount for this order)
I want to create this overview table and I only want to show accounts which have estimated_sales > 0 or total_sales_this_year > 0:
account name - estimatedsales - totalsalesthisyear
Since you can't filter on 2 values with an 'or' relation I want to create a boolean measure 'has_sales_this_year ' in the account table so I can filter on this value but I can't figure out the correct syntax ?
has_sales_this_year = [estimated_sales] > 0 or salesorder[total_sales_this_year] > 0
Solved! Go to Solution.
Hi,
Looks that I don't need the measure since records with no "Total sales this year" and no "Total sales last year" and no "Estimated sales" are not displayed in the table.
Hi,
I changed the example to explain what I want. In my example I want to be able to filter the "Total sales this year" grid so account C is not displayed because this account has no salesorders in 2019 and the estimated sales for this account is also 0.
Hi,
Looks that I don't need the measure since records with no "Total sales this year" and no "Total sales last year" and no "Estimated sales" are not displayed in the table.
Hi,
Thx for the example but this is not what I need exactly. I need a boolean measure on the accounts table which indicates if accounts.estimated_sales > 0 or sales_orders.total_amount > 0.
The sales_orders table also has an intake date and I need to filter the total sales per account on year and/or month and the total_amount and boolean measure need to reflect the intake date filter.
Can you share your sample data and expected output.
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
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 |
---|---|
15 | |
11 | |
8 | |
8 | |
8 |
User | Count |
---|---|
22 | |
13 | |
11 | |
10 | |
10 |