Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I'm looking for a solution suggestion here. In the Matric visual, could I give a custom static column_name rather than PBI using the filtered value itself from a column as a column name
- Below is my scenario
| Accounts | Year_quarter | Records |
| Account 11 | 2021-Q1 | 1 |
| Account 7 | 2021-Q2 | 1 |
| Account 8 | 2021-Q1 | 1 |
| Account 9 | 2021-Q1 | 1 |
| Account 3 | 2021-Q3 | 1 |
| Account 11 | 2021-Q1 | 1 |
| Account 7 | 2021-Q2 | 1 |
| Account 11 | 2021-Q1 | 1 |
| Account 7 | 2021-Q2 | 1 |
| Account 11 | 2021-Q1 | 1 |
| Account 8 | 2021-Q1 | 1 |
| Account 11 | 2021-Q1 | 1 |
| Account 9 | 2021-Q1 | 1 |
| Accounts | 2021-Q1 |
| Account 11 | 5 |
| Account 7 | 3 |
| Account 8 | 2 |
| Account 9 | 2 |
| Account 3 | 1 |
Thanks,
Rohith
Thank you for your update. Could you please provide me with a sample DAX query?
Count of Records = Calculate(Countrows('Main Table'),[Year_Quarter]="2021-Q1")
Great thanks.
If i use [Year_Quarter] as a filter and needs to be picked dynamically as max(Year_Quarter), i will need to use a FILTER function here?
Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?
You would need to create a measure called "Count of Records" that filters to 2021-Q1.
As mentioned in my original post, im interested in getting the column name as the min of the (Year_Quarter) column and the values to be the "count of records" for the respectiive accounts.
Using Matric visual, im interested to get the result like below
| Accounts | min(Year_quarter) |
| Account 11 | 5 |
| Account 7 | 3 |
| Account 8 | 2 |
| Account 9 | 2 |
| Account 3 | 1 |
Hope this clears the confusion.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 47 | |
| 44 |