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
martylin
New Member

range measure

Data table look like this

 

account   amount   date

axxxx        123         2017/1/1

axxxx        323         2018/2/1

bxxx         133         201712/1

bxxx         432         2018/2/3

cxxx         3333        2019/1/1   

cxxx         3333        2019/1/1   

cxxx         3333        2019/1/1   

 

I like to display like this one, 

 

range       count

0-2              2

3-4              1

5↑                0

 

how to do it?   

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @martylin,

 

You can create a calculate column to stored range tag, then use it to create table visual with 'account column' as summary mode count.

Category =
VAR _count =
    COUNTAX (
        FILTER ( ALL ( table ), [account] = EARLIER ( table[account] ) ),
        [account]
    )
RETURN
    IF (
        _count > 0,
        IF ( _count <= 2, "0-2", IF ( _count <= 4, "3-4", IF ( _count >= 5, "5↑" ) ) )
    )

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @martylin,

 

You can create a calculate column to stored range tag, then use it to create table visual with 'account column' as summary mode count.

Category =
VAR _count =
    COUNTAX (
        FILTER ( ALL ( table ), [account] = EARLIER ( table[account] ) ),
        [account]
    )
RETURN
    IF (
        _count > 0,
        IF ( _count <= 2, "0-2", IF ( _count <= 4, "3-4", IF ( _count >= 5, "5↑" ) ) )
    )

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
MFelix
Super User
Super User

Hi @martylin,

 

Your question is not to explicit about what you want to achieve.

 

How do you determine the range for the information  you gave?

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.