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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.