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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
koorosh
Post Partisan
Post Partisan

Filtering by date and Text

Hello Experts,
With SUMMARIZECOLUMNS wants to create a new table. There are two columns that would be used for filtering. One text column and one date column. The filter context is all text that starts with “Certified” and dates in 2022 year. What is the Dax ?

 

I guess it should be something like following:

 

Certified List = SUMMARIZECOLUMNS('Table1'[Col1],'Table1'[Col2],'Table1'[Col3],
FILTER('Table1',[Col1] in {"Certified" && " "}),

DATESBETWEEN(Table1[date],01 01 2020, 31 12 2020)

 

But it is not completely correct.

1 ACCEPTED SOLUTION

Certified List =
SUMMARIZECOLUMNS('Table1'[Col1],'Table1'[Col2],'Table1'[Col3],
FILTER('Table1',LEFT('Table1'[col1],9)="Certified"))

View solution in original post

6 REPLIES 6
Samarth_18
Community Champion
Community Champion

Hi @koorosh ,

 

Pls try this:-

Certified List =
SUMMARIZECOLUMNS (
    'Table1'[Col1],
    'Table1'[Col2],
    'Table1'[Col3],
    FILTER (
        'Table1',
        [Col1]
            IN { "Certified", " " }
                && (
                    Table1[date] >= DATE ( 2020, 01, 01 )
                        && Table1[date] <= DATE ( 2020, 12, 31 )
                )
    )
)

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Certified List =

SUMMARIZECOLUMNS (

    'Table1'[Col1],

    'Table1'[Col2],

    'Table1'[Col3],

    FILTER (

        'Table1',

        [Col1]

            IN { "Certified", " " }))

 

On the first try, the first part does not work.

@koorosh , Try like

SUMMARIZECOLUMNS (
'Table1'[Col1],
'Table1'[Col2],
'Table1'[Col3],
FILTER (
'Table1',
[Col1]
IN { "Certified", " " } || isblank('Table1'[Col1]) ))

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

No Amit. Does not work.

Certified List =

SUMMARIZECOLUMNS('Table1'[Col1],'Table1'[Col2],'Table1'[Col3],

FILTER('Table1'[Col1] IN {"Certified"," "}||ISBLANK('Table1'[Col1]))

Certified List =
SUMMARIZECOLUMNS('Table1'[Col1],'Table1'[Col2],'Table1'[Col3],
FILTER('Table1',LEFT('Table1'[col1],9)="Certified"))

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.