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 everyone,
I have a dataset with receipts. Each line have a receipt date, a user id which represents ther person who enter the receipt in the system, a receipt id and the general information about every product ( Category id , product id , brand id etc), another fact is that wer know the retailer for every receipt. Every line represents a single product, a sample of the data is like this
Now i have another table, which represents promo data and is like this:
The objective is to combine this two tables. I want to check that if a product in a specific receipt date was bought in promo or not.
The statements is that the
1.receipt date must be inside the start and end date of the promo
2. the retailer id of the receipt is thr same with the promo
3. of course the product id must be the same in both tables.
Please help me
Thanks
Solved! Go to Solution.
That would be a really large table. Instead of combining tables, try creating a measure to determine if a receipt qualifies.
Two steps:
If COUNTROWS > 1 then you know it was bought in a promo.
Hope this helps!
Thanks! Very good!
That would be a really large table. Instead of combining tables, try creating a measure to determine if a receipt qualifies.
Two steps:
If COUNTROWS > 1 then you know it was bought in a promo.
Hope this helps!
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 |
---|---|
117 | |
85 | |
49 | |
38 | |
28 |
User | Count |
---|---|
189 | |
76 | |
73 | |
54 | |
42 |