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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to create a monthly frequency column from latest updated date column?

We have datasheet with columns user-id and date when the presentation was last updated. I want to create new columns that register a monthly frequency score whenever the date column gets updated. For example, if date gets updated in month of January twice the frequency score will be two for January and if date gets updated thrice in month of February the frequency score will be three and so on and so forth.

 

 

ajinkya777_0-1660601108691.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please try below steps

1. my test table

vbinbinyumsft_0-1660892869879.png

2. add two new column

Jan Freq =
VAR cur_id = 'Table'[User-id]
VAR tmp =
    FILTER (
        'Table',
        'Table'[User-id] = cur_id
            && MONTH ( 'Table'[Latest update date] ) = 1
    )
RETURN
    COUNTROWS ( tmp )
Feb Freq =
VAR cur_id = 'Table'[User-id]
VAR tmp =
    FILTER (
        'Table',
        'Table'[User-id] = cur_id
            && MONTH ( 'Table'[Latest update date] ) = 2
    )
RETURN
    COUNTROWS ( tmp )

vbinbinyumsft_1-1660892986754.png

Please refer attached .pbix file

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

Please try below steps

1. my test table

vbinbinyumsft_0-1660892869879.png

2. add two new column

Jan Freq =
VAR cur_id = 'Table'[User-id]
VAR tmp =
    FILTER (
        'Table',
        'Table'[User-id] = cur_id
            && MONTH ( 'Table'[Latest update date] ) = 1
    )
RETURN
    COUNTROWS ( tmp )
Feb Freq =
VAR cur_id = 'Table'[User-id]
VAR tmp =
    FILTER (
        'Table',
        'Table'[User-id] = cur_id
            && MONTH ( 'Table'[Latest update date] ) = 2
    )
RETURN
    COUNTROWS ( tmp )

vbinbinyumsft_1-1660892986754.png

Please refer attached .pbix file

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , is it snapshot type of column , or you want to create snapshot on power bi track changes

 

If that is snapshot you can use distinctcount

 

if not you can create one using

https://blog.crossjoin.co.uk/2020/04/13/keep-the-existing-data-in-your-power-bi-dataset-and-add-new-data-to-it-using-incremental-refresh/
https://www.thebiccountant.com/2017/01/11/incremental-load-in-powerbi-using-dax-union/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.