Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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'))
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 8 | |
| 7 |