Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Wondering how one would go about creating a generic script to take the input name of a dataset.table and output to flat file all the unique data row counts for each column?
The following is the dax pattern I want to replicate for each table.column. The result of which would be nice to output to a flat file for analysis.
EVALUATE
GROUPBY('Table',[column], "Count", COUNTX ( CURRENTGROUP (), 1 ))
Similar question asked recently and appreciate the advanced tab of dax studio.
Script to show row total counts of all tables of a dataset
Posing these questions another way. How do we do scripting in dax 'land' similar to how we do in sql 'land' :}
ie sqlcmd, powershell, bash, etc
Solved! Go to Solution.
What you are describing is more suited for a Power Query implementation. DAX doesn't have any function to manipulate column names, for example.
Multiple queries This thread on github for dax studio looks promising for a future enhancement.
What you are describing is more suited for a Power Query implementation. DAX doesn't have any function to manipulate column names, for example.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |