cancel
Showing results for 
Search instead for 
Did you mean: 
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
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors