The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |