Forum Discussion
Many-to-many dimension - blank row behavior
Would this make sense? This way you can avoid many to many relations
- BartVW4 years ago
Helper I
I don't think so. In my data, the measure (price in your example) is linked only to a warehouse task, not to the combination of warehouse task and service code. I think that if I implement your solution, I would double count those cases where a warehouse task has more than 1 service code.
- Anonymous4 years agoNot applicable
Yes but that would be as well a facts table, (WarehouseTasks) and woul make a distinctcount and create measures on top of that distinctcount measure.
If you want, you could share you pbi file and i could provide an example
- BartVW4 years ago
Helper I
Thanks. I can try and prepare a mockup pbix with my scenario. But before I do: will your solution also work for those cases where there is no service code at all? Would that introduce records with a blank key in the fact table? And is it really best practice in power bi to handle this through a measure (it cannot be distinct count as I need to be able to sum up the quantities)?