Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
fsfs
Helper I
Helper I

better performance/best practice in DQ - added flags in fact table vs multiple filters in CALCULATE

hi

 

the case is as follows:

- I have the facts that are binary in nature but aren't to be aggregated directly (due to business rules, as they are the same in granularity but different in interpretation) and in DAX they need to be put as not a very complex, but still robust set of CALCULATE modifiers (several direct filters + some summing of columns, maybe even using iterator with RELATED sometimes)

 

so I have two options:

1) go with a classic CALCULATE( aggregation, modifier1, modifier2, ... )

2) or to generate flag columns during import, that will reduce the DAX from the above example into SUM(single column) - or worst case scenario CALCULATE( aggregation, flag = something)

 

I expect to generate a set of up to 5 flag columns with 0/1/NULL

 

I estimate the fact table to grow into 100 million rows within a year

what will be a better performing option here using Direct Query mode?

2 REPLIES 2
rbriga
Impactful Individual
Impactful Individual

it possible to generate those flags at the source?

For example, through a SQL view?

I believe that would be the best performance option. 

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

yes, that's the only option we are taking into consideration

 

either normal model with more complicated measures

or additional flag columns in an SQL query during import

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.