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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.