Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rohithkothaneth
Resolver I
Resolver I

Matrix visual picking the filtered column value as column name for the column

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

  • I have a main table that will give me account,quarter & record informations
Accounts Year_quarterRecords
Account 112021-Q11
Account 72021-Q21
Account 82021-Q11
Account 92021-Q11
Account 32021-Q31
Account 112021-Q11
Account 72021-Q21
Account 112021-Q11
Account 72021-Q21
Account 112021-Q11
Account 82021-Q11
Account 112021-Q11
Account 92021-Q11
  • Using Matric visual, I'm getting the results like below if I choose the year_quarter as "2021-Q1"
Accounts 2021-Q1
Account 115
Account 73
Account 82
Account 92
Account 31

 

  • Now im interested in getting the column name from "2021-Q1" to "count of records". Is ti possible here?

Thanks,
Rohith

6 REPLIES 6
rohithkothaneth
Resolver I
Resolver I

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?

lbendlin
Super User
Super User

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 115
Account 73
Account 82
Account 92
Account 31

 

Hope this clears the confusion.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors