cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
raomarapatla Regular Visitor
Regular Visitor

Count in Bin with date for every 10 mintues

Hi All,

 

I have date where i have applied Bin for 10 minutes ,I am able to see data is grouped by every 10 minutes,i wanted to consider only last 3/4 weeks bins .

i wanted to display a table with only count 8

bin count.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-cherch-msft Super Contributor
Super Contributor

Re: Count in Bin with date for every 10 mintues

Hi @raomarapatla 

You may try to add a weeknum column.Then create the count measure as below:

Weeknum = WEEKNUM('Actual data'[date],1)
Count =
CALCULATE (
    DISTINCTCOUNT ( 'Actual data'[date (bins)] ),
    FILTER (
        'Actual data',
        'Actual data'[Weeknum] <= WEEKNUM ( NOW (), 1 )
            && 'Actual data'[Weeknum]
                >= WEEKNUM ( NOW (), 1 ) - 2
    )
)

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
v-cherch-msft Super Contributor
Super Contributor

Re: Count in Bin with date for every 10 mintues

Hi @raomarapatla 

You may try to add a weeknum column.Then create the count measure as below:

Weeknum = WEEKNUM('Actual data'[date],1)
Count =
CALCULATE (
    DISTINCTCOUNT ( 'Actual data'[date (bins)] ),
    FILTER (
        'Actual data',
        'Actual data'[Weeknum] <= WEEKNUM ( NOW (), 1 )
            && 'Actual data'[Weeknum]
                >= WEEKNUM ( NOW (), 1 ) - 2
    )
)

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

Top Ideas
Users Online
Currently online: 255 members 2,926 guests
Please welcome our newest community members: