Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
hey,
I will try my best to explain my situation here, so if you have any questions, please ask.
we have PBIX that we're working on under IMPORT mode.
we have 2 fact tables:
1 - Revenue
2- FACT_INVOICE (2) (same as revenue)
they are connected to the same Dim's but not to the same Dim Date table
so Revenue connected to Dim_Date
and FACT_INVOICE (2) connected to Dim_Date 2
why?
because we want to compare periods
so we have 2 periods to choose from and we have a table that aggregates the data
under this, we have a table that does not connect to anything, with values:
now, for each "Model" (item) on the aggregated table, we need to determine if the item is whether "New" or "Old" (ignore "both")
New = The item sold in Period 1 but NOT in Period 2
Old = The item Sold in Period 2 but NOT in Period 1
this is the Calculation for this:
New Impact = The item sold in Period 1 but NOT in Period 2
Old Impact = The item Sold in Period 2 but NOT in Period 1
just a couple of pics:
this is New Impact inside the table with model column (right results):
when I remove the model column (bad results, calculating the whole period amount and not only new):
Hi,
I am not 100% I understood your problem specifically, but from what I can tell I have had similar cases where I wanted to create a category measure and use this to make calculations. Typically this is in the context of customer categories e.g. "New customer","Old customer"...
The typical way that I use to solve these kinds of problems is to first create category measure (in your case [Old & New]).
Now we can use this category measure combined with SUMX, or e.g. COUNTX to make our calculations. Here is an example:
Category measure:
By using this logic we can combat this issue:
"so when I'm trying to do something like: Calculate(Sum(amount), Measure = "Old") it's just calculating the whole revenue of the selected period because "Old" is just a logical attribute and there's no "Model" in the context. "
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.