Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
EzadineAlwajeeh
New Member

Promotions

Hello, I have a Promotions table with the following columns: City Name, Product Type, Promotion Start Date, Promotion End Date, and Promotion Value. I also have a Sales table with the following columns: City Name, Product Type, Goods Entry Date to the factory with date and time, Goods Exit Date from the factory with date and time, Good Value, Customer Name, and Customer ID. My question is that I want to calculate the promotion value for each Good, with several conditions. Each city and product type has its own specific promotions, and if the current promotion is greater than the previous promotion, the start date of the current promotion begins from the goods exit date at 12 PM. If the current promotion is smaller than the previous promotion, the start date of the goods begins from the goods entry date at 7 AM. I need a DAX formula to add a column to calculate the promotion value for each Good in the Sales table. Thank you.

3 REPLIES 3
dilistimor
Regular Visitor

Hello @EzadineAlwajeeh

Is it "offer" column that you mean with promotion?, I will work on it. 

First you have to find the relation between those 2 tables because you mention the start that refers to entry date or exit date of the good (table #2) 

yes, I mean promotion. can you help me how to solve it

danextian
Super User
Super User

Hi @EzadineAlwajeeh ,

 

As always please provide a workable sample data that can be pasted to Excel (not an image) and your expected result using that sample data. You can post a link to an Excel file in the cloud (Google/OneDrive/Dropbox, etc) or a sanitized copy of your pbix. Please refer to this stickY post. https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447... 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors