Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am still relatively new to power bi, so i could very well be doing something wrong. I've broken my problem down to only include a couple of the dimension tables as this reproduces the behavior. See screenshot below.
I have a listings fact table and two dimension tables, one for locations and one for agents. A listing can live in multiple locations, that is a listing can be in a state and also in community or neighbourhood etc.. Similarly an agent can be involved in both sides of the transaction. As such, I have a fact table in which there are multiple listings with the same listing_id, same agent_id but different locations id i.e. For simplicity I've excluded the fact that an agent can be on both sides. What problem is more basic as it relates to the location dimension.
Fact Table would contain (among other data)
listing_id listing_agent Listing_location
x y 1
x y 2
etc...
The screenshot above shows the total number of listings, as I would expect, CV21122026 is repeated because it is in two locations. What's odd is that if I remove the name of the location from that table (name comes from location table), that table gets filtered and i only see one location not both? Yes, the count of listings in the card remains the same. I can't figure out why if I remove the location name from the table it filters and removes the "duplicate" listings, even though they aren't duplicated, in that they have the same listing_id but a different location?
Feels like I am asking an obvious question, but I wouldn't expect this behavior. If my only filter on the page is the agent, and the count is correct, why does it not show in the table?
Appreciate any insight.
Hi, @Jeromec
For the count of listing_id, you can try the DISTINCTCOUNT function.
DISTINCTCOUNT function (DAX) - DAX | Microsoft Docs
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply. Yes, I know I can use disintct count. This doesn't solve my problem. Essentially
if I do this:
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
109 | |
100 | |
95 | |
38 | |
37 |
User | Count |
---|---|
152 | |
125 | |
75 | |
74 | |
63 |