Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |