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
THPNO80
Frequent Visitor

Returns a summary table over the most common values between categories

Hi there!

 

I´m trying to get a summary table over the most accessed reports between two or more categories (by function) in a "Log Events" table. The results will be helpful to create a cleaner network analysis chart. See the example below:

 

UserFunctionReportLog_Events
AMarketingReport_A5
AMarketingReport_B6
AMarketingReport_C2
BAccountReport_D1
BAccountReport_A8
CCSReport_B9
DFinanceReport_B10
DFinanceReport_A2
ER&DReport_C3

 

Expected outcome:

 

ReportFunctionsLog_Events
Report_A315
Report_B325
Report_C25
Report_D11

 

I hope you can help me... thanks in advance!

1 ACCEPTED SOLUTION

Hi @tackytechtom I really appreciate your help, it worked! but when applied to the model it didn't get the expected result. I'm missing something else 🤔 Thanks anyway 👍

View solution in original post

4 REPLIES 4
tackytechtom
Super User
Super User

Hi @THPNO80 ,

 

How about this:

tackytechtom_0-1668634672604.png

 

 

Here the code for creating a new table in DAX:

DerivedDaxTable = 
SUMMARIZE (
    'Table',
    'Table'[Report],
    "Functions",  COUNT ( 'Table'[Function] ), 
    "Log_Events", SUM ( 'Table'[Log_Events] )
)

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Hi @tackytechtom I really appreciate your help, it worked! but when applied to the model it didn't get the expected result. I'm missing something else 🤔 Thanks anyway 👍

serpiva64
Super User
Super User

Hi,

try

serpiva64_0-1668634165766.png

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

Hello @serpiva64 I really appreciate your help too, but, as I commented above, I didn't get the expected result in the model... Regards! 👍

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.

Top Solution Authors