Power Platform Random Tip #4 Get to grips with cardinality when it comes to Power BI
When your working with Power BI (in import mode), having a fundamental understanding of the vertipaq engine will give a insight into the factors that effect your data model size. There's a great article here you could read by the legends Marco Russo and Alberto Ferrari that explains what the vertipaq engine is and the factors effecting compression. I strongly reccpmened purchasing both the Definitive Guide to DAX 1st and 2nd edition if you want to get an in depth understanding of how Power BI works under the hood.
This article will focus on the steps you can take to reduce the size of your data model by removing or reducing your cardinality.
Reducing or, even better, removing cardinality will significantly impact your data model size and give you the most bang for your buck when it comes to reducing your data model size. The golden rule when working with Power BI is only to import what you need, it sounds simple, but I've seen many data models grind to a halt because someone thought it was a good idea to bring in all the columns on the off chance the column are required in the future.
Take a close look at the PBIx files ordered by PBIx size below. Shoutout to Kris Coupe for the idea ; it's a great way to visualize the importance and impact of cardinality.
Key takeaways:
Hopefully the above provided you with a insight into how cardinality has an significant impact on your data model. I've listed some examples of the steps you can take with your data model to reduce cardinality which will likely result in a reduction in your data model size. I'n most cases you will see a ripple effect of performance gains when it comes to refreshing and visuals query performance.
I strongly suggest that test any of the recommendations listed below before deploying to production to ensure you get the expected output and performance.
领英推荐
1) Remove columns you do not need
2) Remove rows you do not need
2) Pick the right granularity
4) Manipulate/Tranform your columns
5) Use direct query
Have you come across any other methods of reducing cardinality?
Providing advanced end-to-end analytical solutions. Specialist in Power BI, DAX, data modelling and visualisation.
2 年Nice articles Samuel Woldu-Desta and cheers for the mention. I used to love that exercise showing off the importance of cardinality on model size using extremes. Feels like an age ago!!