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 Power BI community! I'm currently studying business intelligence and am stuck on an assignment. We've been told to measure revenue from weeks where a store has had a campaign. I.E. during all 52 weeks of a year we've had different campaigns for different products, and I want to find a way to see the total sales/total revenue from the products on campaign.
The issue I've been facing is that as soon as I add a measure to calculate margins (or any measure at all) in my table/matrix, the table automatically includes ALL products from the store, instead of only including those on campaign. (Adding pictures to show what happens when I've added total sales to the table).
Does anyone know where my problem might stem from? Is it a modelling issue or am I just overthinking this?
Hi @HannahTwete ,
Could you please tell me what's the formula of your total sales?
Try to use
FILTER(ALLSELECTED('TABLENAME'),[COLUMNNAME]=MAX('TABLENAME'[COLUMNNAME]))
to get the context filters you want.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |