Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi guys,
I hope you can help me with a problem:
I have a DIM_Product table and a FACT_Volume table.
The relation between the "product"-table and "Volume"-table is '1-to-many'.
In my Product table I have a lot of redundant products, which have no volume (in the example above there is one ("3")).
My problem is that I can't make the cross-filter direction="both", which would solve the problem.
Now, my question is:
Is there a way to set up a calculated column (fx. "flag") on the product table, which can be used as filter, based on the volumes in the volume-table?
I have tried the following as a calculated column on the product table:
Active products = IF(NOT(ISEMPTY('Volume table')),1,0)
... but that didn't work.
Any ideas?
thanks.
Br,
Jayjay0306
Solved! Go to Solution.
Hi @jayjay0306,
You can use:
Flag = IF(CALCULATE(SUM(Volume[Volume]),FILTER(Volume,'Product'[ID]=Volume[ID]))>0,1,0)
Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Previous Forecasts
Hi @jayjay0306,
You can use:
Flag = IF(CALCULATE(SUM(Volume[Volume]),FILTER(Volume,'Product'[ID]=Volume[ID]))>0,1,0)
Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Previous Forecasts
Thanks Shauya, this works perfectly. 🙂
Br,
Jayjay0306
Try changing it to
Active products = IF(NOT(ISEMPTY(RELATEDTABLE('Volume table'))),1,0)
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
21 | |
20 | |
19 | |
13 | |
12 |
User | Count |
---|---|
42 | |
27 | |
23 | |
22 | |
22 |