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 September 15. Request your voucher.
I have a sales table, (many duplicates,) and I am trying to create a One to Many relationship with CustomerBrandCatActive. This table will ultimately be a bridge. There are no other relationships connected to CustomerBrandCatActive.
Solved! Go to Solution.
Hi,
I am not sure how your CustomerBrandCat table looks like, but please try the below.
Or, please share your sample pbix file.
CustomerBrandCatActive =
DISTINCT (
CALCULATETABLE (
SUMMARIZE ( CustomerBrandCat, CustomerBrandCat[Active] ),
FILTER ( CustomerBrandCat, CustomerBrandCat[Active] <> "N" )
)
)
Thank you. This works. I would love to know why it works though. The results in the table are are different, by about 40 records. The results are too big to export, so I can't just compare what is being returned by each option.
Hi,
I am not sure how your CustomerBrandCat table looks like, but please try the below.
Or, please share your sample pbix file.
CustomerBrandCatActive =
DISTINCT (
CALCULATETABLE (
SUMMARIZE ( CustomerBrandCat, CustomerBrandCat[Active] ),
FILTER ( CustomerBrandCat, CustomerBrandCat[Active] <> "N" )
)
)
User | Count |
---|---|
65 | |
59 | |
55 | |
54 | |
32 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |