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! Request now

Reply
radekceluch
Regular Visitor

Given a DAX query - extract all attribute members that are effectively used (not filtered out)

Hi,

I am trying to find a clever way of getting a list of members (values) of a given attribute that are effectively used/analysed in a report. What I do now is I get DAX queries from Azure Monitor and extract memebers with following simplified patterns. However there are many ways to apply filter on attribute.

 

For now I am looking for following patterns. It works fine for ~95% of DAX queries I get from Azure Monitor. Any ideas how to improve it or extend the list will be highly appreciated. Especially for 2nd pattern which is based on naive assupmption that filters are simple (AND based) and without negations.

 

Patterns I look for in Kusto currently:

  1. extend X = extractall(@"(?i)TREATAS\s*\(\s*{\s*([^{]+?)\s*}\s*,\s*'Table'\[Attribute]", TextData_s)
  2. extend Y = extractall(@"(?i)'Table'\[Attribute]\s*IN\s*{\s*([^{]+?)\s*}", TextData_s)

 

My ask is if you know of any way/tool/anything to cope with this task or if anyone had similar problem and how (s)he managed to solve it?

 

Thank you very much for any ideas, insights and help!

Regards,

Radek Celuch

0 REPLIES 0

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.