Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
See below. Need custom column that shows the minimum count of the textColumn grouped by week.
weekNumber | textColumn | customColumn |
1 | A | 1 |
1 | B | 1 |
2 | A | 1 |
2 | B | 2 |
2 | B | 2 |
Solved! Go to Solution.
@Anonymous
Column = MINX(SUMMARIZE(ALL('Table'),[weekNumber],"__Count",COUNTROWS('Table'))
Hi @Anonymous ,
Please try below dax formula to add a new column:
customColumn =
VAR cur_weekNumber = 'Table'[weekNumber]
VAR cur_textColumn = 'Table'[textColumn]
VAR temp_table =
FILTER (
'Table',
'Table'[weekNumber] = cur_weekNumber
&& 'Table'[textColumn] = cur_textColumn
)
RETURN
COUNTROWS ( temp_table )
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try below dax formula to add a new column:
customColumn =
VAR cur_weekNumber = 'Table'[weekNumber]
VAR cur_textColumn = 'Table'[textColumn]
VAR temp_table =
FILTER (
'Table',
'Table'[weekNumber] = cur_weekNumber
&& 'Table'[textColumn] = cur_textColumn
)
RETURN
COUNTROWS ( temp_table )
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Thinking something like:
Measure = MINX(SUMMARIZE('Table',[weekNumber],"__Count",COUNTROWS('Table'))
@Anonymous
Column = MINX(SUMMARIZE(ALL('Table'),[weekNumber],"__Count",COUNTROWS('Table'))
User | Count |
---|---|
10 | |
8 | |
5 | |
5 | |
4 |