The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
**I am not able to modify these table, so no calc columns or Power Query***
**Transaction Fact table is over 300 Million Rows and lives in SQL**
**Screenshots of tables are below text**
I have 4 tables
Dates Table = Simple dates table, Date, month, year etc...
Transaction table (300+ Million Rows) = Shows by date by store, the different transaction amounts
Store Status Table = Shows by data over time what was the store status on that day
Store table = List of stores, location of store etc...
I am trying to model these tables together so that I can write a formula that shows the transaction amount by day for a store ONLY when that store status on that day was "Open".
So if there was a transaction on 2/21/22 for store A, but the status was "Closed" that day... don't count it.
Dates Table | Transaction Table | Store Status | Store |
|
|
Question 1: How does this need to be modeled to give me the answer I need?
Question 2: What is the formula I can write to do this?
Here is what I have, but I know this isn't right....
I have two formulas:
What am I doing wrong, is this modeled properly, how do I write this with DAX?
@powerbignc , create a combined column in both transaction table and store table
Date Stote = format([Date], "YYYY-MM-DD") & "-" & [Store]
Use the correct column from both tables and join them
I do not this you will need a store table in that case