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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

TREATAS returns blanks where it should not.

Hello, 

I am using TREATAS to return a text field in a measure where I'm not able to join the tables directly due to circular referencing with RLS.

 

However, although it is returning a lot of values, it is also returning some blank rows where I would expect data to be returned, does anyone know why this may be?

 

I started using one field to join on:

 

VAR _id = CALCULATETABLE( VALUES( report_pm_change[asset_unique_id] )) 

  

RETURN 

CALCULATE ( 

SELECTEDVALUE(report_asset_change[status]), 

TREATAS( _id, report_asset_change[asset_unique_id] ) 

) 

 

However when this did not work, I tried to join on two fields with the same inconsistent result:

 
VAR _id = SUMMARIZE( report_pm_change, report_pm_change[asset_unique_id], report_pm_change[asset_number] )

RETURN
CALCULATE (
SELECTEDVALUE(report_asset_change[status]),
TREATAS(_id, report_asset_change[asset_unique_id],report_asset_change[reference] )
)

 

Any input would be welcome. 

 

Thanks, 

Mark

1 REPLY 1
Anonymous
Not applicable

Nothing can be said without actually giving access to the file or a file that demonstrates your issue.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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