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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nick9one1
Helper III
Helper III

lookup boolean value from another table

I have two tables and using this DAX to import values from one table to the other;

(this works)

Total Rooms = 
CALCULATE(
    MAX('Lettings Fact_SPVDetails_Summary'[TotalRooms]),
    FILTER(
        ALL('Lettings Fact_SPVDetails_Summary'),
        [SPV]=Earlier('Lettings Fact_Lettings_Summary'[SPV])&&
        [Academic_Year]=Earlier('Lettings Fact_Lettings_Summary'[Academic_Year])
    )
)

 

Most of the values are numerical, but I have a boolean column I also need to bring across (Nominated). 
Calulate obviously does not work with boolean values, so what do I replace it with? 

Nominated = 
CALCULATE(
    MAX('Lettings Fact_SPVDetails_Summary'[Nominated]),
    FILTER(
        ALL('Lettings Fact_SPVDetails_Summary'),
        [SPV]=Earlier('Lettings Fact_Lettings_Summary'[SPV])&&
        [Academic_Year]=Earlier('Lettings Fact_Lettings_Summary'[Academic_Year])
    )
)

 

thank you

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @nick9one1 

 

I simulated some data to restore your problem, you can use the lookupvalue formula to see the boolean value.

Total Rooms = 
LOOKUPVALUE (
    'Lettings Fact_SPVDetails_Summary'[TotalRooms],
    'Lettings Fact_SPVDetails_Summary'[SPV], [SPV],
    'Lettings Fact_SPVDetails_Summary'[Academic_Year], [Academic_Year]
)

vzhangti_0-1673505618385.png

LOOKUPVALUE function (DAX) - DAX | Microsoft Learn

 

Best Regards,

Community Support Team _Charlotte

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

View solution in original post

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @nick9one1 

 

I simulated some data to restore your problem, you can use the lookupvalue formula to see the boolean value.

Total Rooms = 
LOOKUPVALUE (
    'Lettings Fact_SPVDetails_Summary'[TotalRooms],
    'Lettings Fact_SPVDetails_Summary'[SPV], [SPV],
    'Lettings Fact_SPVDetails_Summary'[Academic_Year], [Academic_Year]
)

vzhangti_0-1673505618385.png

LOOKUPVALUE function (DAX) - DAX | Microsoft Learn

 

Best Regards,

Community Support Team _Charlotte

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

FreemanZ
Super User
Super User

hi @nick9one1 

try to use LOOKUPVALUE, like this:

Nominated =
LOOKUPVALUE(
    'Lettings Fact_SPVDetails_Summary'[Nominated],
    'Lettings Fact_Lettings_Summary'[SPV],
    [SPV],
    'Lettings Fact_Lettings_Summary'[Academic_Year],
    [Academic_Year]
)

 

if the two tables are connected one-many, this shall be enough:

Nominated = RELATED('Lettings Fact_SPVDetails_Summary'[Nominated])

 

amitchandak
Super User
Super User

@nick9one1 , try like

 

Nominated =
CALCULATE(
MAXX('Lettings Fact_SPVDetails_Summary', int('Lettings Fact_SPVDetails_Summary'[Nominated])),
FILTER(
('Lettings Fact_SPVDetails_Summary'),
[SPV]=('Lettings Fact_Lettings_Summary'[SPV])&&
[Academic_Year]=('Lettings Fact_Lettings_Summary'[Academic_Year])
)
)=1

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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