Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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'))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |