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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.