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
karun_r
Employee
Employee

How to measure most frequent record in a column ?

Let's say I have a table with the below schema

 

CREATE TABLE [dbo].[ARCG](
	Sub [nvarchar](400) NULL,
	UserName [nvarchar](200) NULL,
	[UserRole] [nvarchar](200) NULL,
	[Action] [nvarchar](200) NULL,
	[UserUpdatedBy] [nvarchar](200) NULL,
	[UserUpdatedOn] [datetime] NULL
) ON [PRIMARY]

GO

Sample data would be something like thi

 

Sub1    User1    Admin    Granted    Add1    2017/07/07
Sub2    User2    Admin    Granted    Add1    2017/07/06
Sub1    User3    Admin    Granted    Add2    2017/07/07
Sub3    User1    Admin    Granted    Add1    2017/07/07
Sub3    User2    Admin    Granted    Add2    2017/07/06
Sub3    User3    Admin    Granted    Add1    2017/07/07

In my report, I have slicer on UserUpdatedOn field and if I select dates including 2017/07/07 and 2017/07/06, "Add1" should be returned as it has most frequency in the column UserUpdatedBy column. Similarly, the value should change when I adjust the slicer. Is there any way to do this using Measures ?

1 ACCEPTED SOLUTION
karun_r
Employee
Employee

Found the answer in this post. Marking as sovled. 

View solution in original post

1 REPLY 1
karun_r
Employee
Employee

Found the answer in this post. Marking as sovled. 

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.