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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
phaum1967
Resolver I
Resolver I

Measure or table

Hi Users

I'm wondering if it is better to create a complex measure or to create some tables to divide a complex problem in understandable parts ?

Is someone can share his experience. 

I tried to do some complex dax formula but as i m not a pro, understanding each step with a summarize table seems to me better... 

thanks 

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee


@phaum1967 wrote:

Hi Users

I'm wondering if it is better to create a complex measure or to create some tables to divide a complex problem in understandable parts ?

Is someone can share his experience. 

I tried to do some complex dax formula but as i m not a pro, understanding each step with a summarize table seems to me better... 

thanks 


@phaum1967

For complex dax formula, you could try to use VAR. eg in this thread

Top3ofAnySelectedCountry =
VAR TBL =
    SUMMARIZE ( Data, Data[Country], "sumtotal", SUM ( Data[Amount] ) )
VAR RNK_TBL =
    ADDCOLUMNS ( TBL, "RANK", RANKX ( TBL, [sumtotal],, DESC, DENSE ) )
RETURN
    SUMX ( FILTER ( RNK_TBL, [RANK] <= 3 ), [sumtotal] )
Anonymous
Not applicable

I'd say it depends on the situation, but generally for very complex measures involving summary tables, I'll use DAX Studio to test steps and view the summary tables and make sure everything works the way I expect along the way before completing the measure. I don't like to keep extra tables around in memory if I don't have to. Bogs everything down.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.