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

Filter table before using CROSSJOIN

Hi,

 

I want to create a crossjoin table of the table below with only "A" values in the "field" column. I know how to do this if I first manually filter the field. However, this is not a suitable option for me because I want to minimize the amount of tables.

 

Julkku_0-1613139129718.png

 

This is the dax formula I would use after manual filteration:

crossjoin = 
VAR _tab = 
    ADDCOLUMNS(
        CROSSJOIN(ALL('table where field filtered'[id]), ALL('table where field filtered'[category])),
        "idCategory", 'table where field filtered'[id] & 'table where field filtered'[category]
    )
RETURN
    ADDCOLUMNS(
        _tab,
            "isyes",
                VAR _val =
                    LOOKUPVALUE('table where field filtered'[value], 'table where field filtered'[id_category], [idCategory])
                RETURN
                    IF(_val = BLANK(), 0, _val)
    )โ€‹

 

 

So my questions are:

1. Is it possible to filter the "value" column in the dax formula above?

2. Is there a way to a way to do the whole process in a measure instead of creating a new table?

 

You can find the pbix here.

 

I'm very grateful for everyone who have the time to help ๐Ÿ™‚

 

Juls

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , what is the expected output table, is not very clear. Please share an example

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
Anonymous
Not applicable

@amitchandak 

 

Here's the expected output table. In this example I have filtered "field" A in query editor before creating the new table using crossjoin. My goal is to find a way to keep the original table untouched and do the "field" filtration in dax when creating the new crossjoined table.

Julkku_0-1613319375633.png

 

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)