Forum Discussion
Regarding data model
- 9 months ago
Hello sree1610
Keep Star Schema: Donβt merge tables. Keep Fact and Dimension tables separate.
Relationships: Create one-to-many (Dim β Fact) with single-direction filters.
Avoid Bi-Directional Filters: They cause ambiguity and slow performance.Interactivity
Use Table visual (styled like a card) for clickable KPIs.
Or use buttons + bookmarks if you want card-style visuals to trigger filters.
Result: Clean model, fast performance, and fully interactive Report
If my response helped you, please consider clicking
Accept as Solution β and giving it a Like π β it helps others in the community too.
Thanks,
Connect with me on:
LinkedIn - 9 months ago
Hi sree1610, please do not merge all your tables or connect all tables with bi-directional relationships, unless you want to create Frankenstein's data model from hell or a creative version of random number generator report.
Could you list your fact table(s) and dimensions with the keys connecting them and their current relationships? Even better if you could provide an example with a few rows of each dimension/fact table including all relevant columns. With that we can try to help you figure out how to adjust your model in detail.
General rule of thumb: You should always aim for a one-to-many relationship with uni-directional filter direction between your dimensions and fact table (with your dimensions filtering your fact table(s)). Avoid any many-to-many and bi-directional relationships whenever possible, unless you really know exactly what you're doing and why you need to do it in this particular case.
Think of it like this: Your relationships visualize how the filters flow through your data, and the data you really want to filter is always the data in your fact table, not the data in your dimensions (since the fact data is what you need to calculate with)! If your model is correctly set up, your interactivity happens automatically since the actual content of your KPIs is filtered by all dimensions in your model.You should generally aim to get as close as possible to a star schema, but (realistically speaking) ~90% of the models I've encountered professionally so far were actually Snowflake schemas and still worked perfectly fine (don't officially quote me on that one - some purists might throw stones at me π«£). Based on the numbers of rows you described, this sounds like a pretty small model, so while we should always aim for best practice modeling, you don't have to beat yourself up if you don't succeed in creating a perfectly clean star schema right away.
Regarding your requirements for 2) -> Could you describe in more detail which KPIs your showing, the differences between them and how exactly you'd want them to filter the other visuals?
The possibilities depend on your exact requirements, but you could try and use the new card visual by adding any dimension as needed to the category-field + a field parameter as a slicer to switch between different Measures in your cards. Like that you can use your cards to cross-filter other visuals, but it's not the most user-friendly option (it might require quite a bit of conditional formatting to ensure that your users really know what they are currently cross-filtering whenever they click on a card). The better option would be to just use appropriate slicers on your page.
Hello sree1610
Keep Star Schema: Donβt merge tables. Keep Fact and Dimension tables separate.
Relationships: Create one-to-many (Dim β Fact) with single-direction filters.
Avoid Bi-Directional Filters: They cause ambiguity and slow performance.
Interactivity
Use Table visual (styled like a card) for clickable KPIs.
Or use buttons + bookmarks if you want card-style visuals to trigger filters.
Result: Clean model, fast performance, and fully interactive Report
If my response helped you, please consider clicking
Accept as Solution β and giving it a Like π β it helps others in the community too.
Thanks,
Connect with me on: