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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Bharathi_99
Helper IV
Helper IV

Rank In PBI

Hi all,

I have

Views in Fact User table and News type in Dim Content table and Content title in Dim Content table

For each news type I want to see Top 1 Content title which is having Highest views

Like for Global News I want to see what is the highest views content tile
For Local news I want to see what is the highest views content tile
For regional news I want to see what is the highest views content tile

PLease help
Thanks in advance

24 REPLIES 24

Hi,

Thanks for replying,

when I am using the dax you have given the output is like below

Bharathi_99_0-1689911995542.png

It's not showing name and dates for all news types, only for one....please reply

Filtered news type is created column based on one more column

I am taking everything from only one table that is Fact Content

I don't know, why nothing is working here, maybe group by works ....

Please help

Thankss in advance

Hi,  @Bharathi_99 

Thanks for your quick response ! And sory for that this dax code still can not work , it is very strange For this dax "Created Name Measure = CALCULATE( MAX('Fact Content'[created by name]) , MONTH('Fact Content'[date]) = MONTH(MAX('Fact Content'[date])) - 1)" :

This is just calculate the last montn "created by name" as the same logic as your [Month Filter] measure.And for the "Views" in your visual , in my undersand , this is just the  [Month Filter] measure, right?

 vyueyunzhmsft_0-1689912666402.png

And only one situation for there is only one poosible is that the [created by name] and [published Date] is contains blank in your table?

And I'm not sure what you want to get the following [created by name] and [published Date], I used the same logic as your [Month Filter] in dax.
So can you send me the download link of the sample .pbix (you can cr eate a test .pbix and make this isssue in it ,and also give me the end result !) you have the error problem with? Then tell me the data and calculation logic you need to display, which can make the problem simpler and clearer? 😁

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

😘

 

 

Hi,

ContentIddatepublished_atmetadatauser_ididSum of nb_content_viewsSum of nb_content_likesSum of nb_content_commentscontent_titlecontent_type_nameFiltered News Type
540204126/28/2023 0:005/12/2023 17:59Video45037090df826ded7681bae5d15e18b56ac242e8100We invited  mothers for an unforgettable experienceNewsRegional News
593009906/1/2023 0:005/19/2023 21:22Training450370316ef863e1d58ac36e4af26ccab7afe4291002023/06/07: Masterclass: Working Effectively Across CulturesEvents 
593009906/1/2023 0:005/19/2023 21:22Training4503703179ba432f759c4b0b7585ba40b395c5891002023/06/07: Masterclass: Working Effectively Across CulturesEvents 
593009916/2/2023 0:005/19/2023 21:22Training45037090baec93e847a9ce0b6120c7ec752a69001002023/06/07: Masterclass: Working Effectively Across CulturesEvents 
453176816/15/2023 0:005/31/2023 22:00Engagement45037031867d3eca5c6269c5aa8b0c93cb695f90100 News 
453176816/15/2023 0:005/31/2023 22:00Engagement45037031ce5d58aeeb337248c65cd492111453b3100 News 
498518836/3/2023 0:005/31/2023 22:00Scholarships450370313aa91a5dced42d77103930d97782f972100Deadline: June 15 - 2023  Student AwardsReminders 
498518836/3/2023 0:005/31/2023 22:00Scholarships4503703198d6acfcc69c0c706e1eb1971a1beecf100Deadline: June 15 - 2023  Student AwardsReminders 
555492806/15/2023 0:006/5/2023 22:00Wellness4503703183d584a5ac9132f424c907fc93d4acad100 News 
555492806/15/2023 0:006/5/2023 22:00Wellness450370318f463c95c5c415f43d4e0bcfab9f5ab6100 News 
465390036/27/2023 0:006/15/2023 21:47Purpose and Values45037031baf4cd9dfa35724b07046b52c1e8d28b1002023/06/27: Join our Masterclass Events 
465390036/27/2023 0:006/15/2023 21:47Purpose and Values45037031d5014526c27083e592727bf8a1cf062f1002023/06/27: Join our MasterclassEvents 
573378276/27/2023 0:006/21/2023 22:00 Benefits450370315c6cd758468b2f317e0cf77fff99db1d100 News 
573378276/27/2023 0:006/21/2023 22:00 Benefits4503703173b2da007de296674bc8bdc20b5c4d3c100 News 
523362396/30/2023 0:006/25/2023 22:00Welcome45037090db8f4d5b62b7635acf6a2906a04af38e100New Iconic  EmblemNewsGlobal News
525940396/28/2023 0:006/27/2023 14:28Welcome45037090ed801576fd2f050817bc29cf481c5022100Your Way:  ‘Easy to Always Be Charged’NewsGlobal News
617430636/5/2023 0:007/4/2023 7:00Programs450370319c3c05873d4f44899ea003afbcd835a5100 News 

TThis si the sample data

For one date there are many published at dates

Hi ,   @Bharathi_99 

Thanks for the sample data very much!!! But where is the "News Type" in your visual and i can not find it in the sample data....

And dose this [Views] in your table is using your [Month Filter] measure?

vyueyunzhmsft_0-1689918865581.png

And dose your actually need is to see the highest views in the previous month?And i see your sample data there is many blank value  in the [Filtered News Type] and [Content Type]...

And i do not surely understand which you want to group by if used the [Filtered News Type] and [Content Type]?

I'm really sorry, I checked your sample data, but I'm still not very clear about your needs. . .

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.