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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Difference between both the ways of using TREATAS

Hi, 

 

When i created the following measures, i expected both the values to be same but they are different. 

Can anyone help me understand why that is the case.? 

 Measure 1 = 

CALCULATE (
COUNT ( 'Benchmark Group Base data'[Group Ticket days grouping] ),
'Benchmark Group Base data'[benchmarkgroup] = "Government",
TREATAS (
VALUES ( 'Benchmark Base Data'[Ticket days grouping] ),
'Benchmark Group Base data'[Group Ticket days grouping]
),
TREATAS (
VALUES ( 'Benchmark Base Data'[International or Domestic] ),
'Benchmark Group Base data'[International or Domestic]
),
TREATAS (
VALUES ( 'Benchmark Base Data'[flight_departure_datetime] ),
'Benchmark Group Base data'[flight_departure_datetime]
)
)
And the value is 13307
 
Measure 2 = 
CALCULATE (
COUNT ( 'Benchmark Group Base data'[dim_price_item_key] ),
'Benchmark Group Base data'[benchmarkgroup] = "Government",
TREATAS (
SUMMARIZE (
'Benchmark Base Data',
'Benchmark Base Data'[Ticket days grouping],
'Benchmark Base Data'[flight_departure_datetime],
'Benchmark Base Data'[International or Domestic]
),
'Benchmark Group Base data'[Group Ticket days grouping],
'Benchmark Group Base data'[flight_departure_datetime],
'Benchmark Group Base data'[International or Domestic]
)
)
and the value is 5871
 
Tagging people who helped in the past.  @parry2k  
1 REPLY 1
dax
Community Support
Community Support

Hi anushavikram,

I can't reproduce your design just based on your expression and description, so if possible, could you please inform me more detailed information(such as your sample data and your expected output)? Then I will help you more correctly.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 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.