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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.