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.
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'))
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |