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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Check box automatically after refresh query

Hey,

 

I Have dynamic DB that contains dates, after every time I'm updating the DB, I have to enter the PowerQuery and select the new date that have been added. Is there any way that the PowerQuery can check automatically ALL the selections every refresh?

 

Here is an example from today, where 31/8/2020 has not been selected automatically.

 

Thanks!

 

Itay_1-1598944204960.png

 

6 REPLIES 6
mussaenda
Super User
Super User

Hi @Anonymous ,

 

It is better I think to use <> then your unwanted data,

instead of = then your wanted data.

 

So you new data will always be selected.

 

Hope this helps!

Anonymous
Not applicable

Hey Guys, Thanks for the support,

 

the problem is that those dates are titles, I select them after I merged another query to my data.

 

At the editor it looks like:

 

Table.ExpandTableColumn(#Previous Step", "Merged Data", {"KPI", "01/09/2020", "02/09/2020", "03/09/2020", "04/09/2020", "06/09/2020"}, {"KPI.1", "01/09/2020", "02/09/2020", "03/09/2020", "04/09/2020", "06/09/2020"}),

 

What can I write instead those static dates, to select all the NEW titles?

 

Thanks!

Hello @Anonymous 

 

you have to make it dynamic.

Meaning you have to analyse your column with tables and create a distinct list of all table column names, and use this list for expanding. Your new code could look something like this (not tested)

GetDistinctListColumnNames = List.Distinct(List.Combine(List.Transform(#Previous Step"[Merged Data], each Table.ColumnNames(_)))),
Expand = Table.ExpandTableColumn(#Previous Step", "Merged Data", GetDistinctListColumnNames , GetDistinctListColumnNames ),


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

It is suggested to filter date column using "Date Filters", such as "After" or "Custom Filter".

date filter.jpg

 

 

Best Regards,

Icey

 

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

Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

normaly all data is read. Could it be that you have a filter-step as last step in your query? Because this could lead into such behaviour. Could you post your query?


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Greg_Deckler
Community Champion
Community Champion

@Anonymous - I believe you want to get rid of your Filtered Rows statement,

= Table.SelectRows(#"Unpivoted Columns", each true)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Kudoed Authors