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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to count with many records

Hello experts,

 

I am stuck at something and i urgently need help.

I have a table from where i need to count Book id based on author name and then make graphs based on ranks for authors , Simple version of table is below. I have quite a few tables in relationship model, so adding another is not an option.

Author                  Book id

Ken                             123

Jerry                          545

Ken, Jerry               321

Sam ,Jerry,Ken         525

----Like this

I tried to use LOOKUP for "Ken" and get an extra 'Ken' cloumn with 1 when row has "Ken" and then used page filter for showing each ranked author in each page. but it is making the graph static as i needed to add this extra'Ken' column while graphing and also i have 200+ distinct authors.

I need to  add a measure to count book id based on authors name in row.

 How do i do this? Please help.

 

Thanks a lot, and this community is very helpful, everyday i am learning from experts, thanks a lot...

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, right click on the first column's heading and select Split > By delimiter > Comma > Advanced > By rows.  to your visual, drag Author from the Table and write this measure

=DISTINCTCOUNT(Data[Bood id])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, right click on the first column's heading and select Split > By delimiter > Comma > Advanced > By rows.  to your visual, drag Author from the Table and write this measure

=DISTINCTCOUNT(Data[Bood id])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thanks, 

You are welcome.  If my reply helped, please mark it as Answer.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.