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

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

Reply
Balaraju
Helper III
Helper III

How to get usage of at least two times in one week

Hi All,

 

Actually in my table I have User id and FB usage Columns I need to get How many Distinct  users used  FB usage at least two times per every week the month data is in daily level.

 

Eg: If there is 4 weeks this month, 2 times every of these weeks if I only access 3 out of 4 weeks, its not to be counted.

 

Sample Table:

Balaraju_0-1646843416596.png

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Balaraju ,

 

First we need a date column and use this to calculate the week number.

Date = DATE('Table'[Year],'Table'[Month],'Table'[Day])
Week = WEEKNUM('Table'[Date])

Then calculate the quantity that meets the requirements.

Column 1 = IF('Table'[FB Usage]>2,'Table'[User Id]) 
Column 2 = 
VAR _value_1 =
    CALCULATE (
        DISTINCTCOUNTNOBLANK ( 'Table'[Column 1] ),
        ALLEXCEPT ( 'Table', 'Table'[Week] )
    )
RETURN
    SWITCH ( TRUE (), _value_1 <> 0, _value_1, 0 )

The result should be like this.

vcgaomsft_0-1647253874078.png

Attach the PBIX file for reference. Hope it helps.

 

If this doesn't work for you or I misunderstand your needs, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.

 

It makes it easier to give you a solution.

  1. Sample (dummy dataset) data as text, use the table tool in the editing bar.
  2. Expected output from sample data.
  3. Explanation in words of how to get from 1. to 2.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Hi @Anonymous ,

 

Actually it is not matiching my requirement. Thanks for your Reply. I will reshare my requirement again.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors