Forum Discussion
Help for calculating multiple fields of multiple table in many to many relationship!
- 7 years ago
Hi vpnnm,
Try this one, please. Are you sure the result should be 2901? I would suggest you check them with a small dataset.
Total #APP = CALCULATE ( DISTINCTCOUNT ( APP[APP_ID_C] ), FILTER ( BRIDGE, BRIDGE[ID] <> BLANK () ), FILTER ( LEADGEN, LEADGEN[REALNM_NO] <> BLANK () ) )
Best Regards,
Yes, here is the file pbix
\
is anyone able to figure it out ? please help!
- v-jiascu-msft7 years ago
Microsoft Employee
Hi vpnnm,
I hope you didn't share anything confidential here.
Maybe you should count the [CIF_NO] instead. Please refer to the formula and snapshot below.
Total #APP 2 = CALCULATE ( DISTINCTCOUNT ( APP[CIF_NO] ), LEADGEN[REALNM_NO] <> BLANK () )
Best Regards,
- vpnnm7 years agoFrequent Visitor
Tks for your advice, it is dummy data anyway!
btw, it’s supposed to calculate the APP(APP_ID) not CIF_NO because 1 CIF can have multiples APP_ID
Also, i would like to use the DATE slider (DISBURSALDATE column of the DISB table) to filter but result is like this:
- v-jiascu-msft7 years ago
Microsoft Employee
Hi vpnnm,
What should the result be?
I think you need a date table in this scenario. It will connect to three tables just like the Bridge table. Finally, the result will respond to the date slicer that is from the calendar table.
Best Regards,