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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
THENNA_41
Post Partisan
Post Partisan

How to Order wise align  clusterd chart

i have created clusterd column chart  Using measure with  total value 
 
Below measuer i used in the graph : 
 
 
 
Total Month =
IF(SELECTEDVALUE('Total Month variation'[Reduction buckets])="Total Month Variation",CALCULATE(SUM('Master Data Base'[Value]),ALLSELECTED('Total Month variation'[Reduction buckets])),
SUM('Master Data Base'[Value]))
 
 
 
Now  i have created calculated column  like 
 
Total Month variation = UNION ( VALUES ( 'Master Data base'[Reduction buckets]), ROW ( "Reduction Buckets", "Total Month Variation" ) )
 
 
 
Now  my Grpah looks like 
 
THENNA_41_0-1637302924059.png

 

I want to make this graph order wise  like below 

 

THENNA_41_1-1637302966766.png

 

 
any idea . thanks in advance 
 
1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @THENNA_41 ,

I created a sample pbix file(see attachment), please check whether that is what you want.

1. Create a sorted table by manual typing. You can also put this sorted table on a cloud-based file (e.g. OneDrive), which makes it easy to maintain and refresh later.

yingyinr_0-1637572883576.png

2. Select the field "Reduction buckets" and sort by column "Order"

yingyinr_1-1637573004378.png

3. Update the formula of your measure [Total Month] as below:

 

Total Month = 
VAR _selbucket =
    SELECTEDVALUE ( 'OrderTable'[Reduction buckets] )
RETURN
    IF (
        _selbucket = "Total Month Variation",
        CALCULATE (
            SUM ( 'Master Data Base'[Value] ),
            ALLSELECTED ( 'OrderTable'[Reduction buckets] )
        ),
        CALCULATE (
            SUM ( 'Master Data Base'[Value] ),
            FILTER (
                'Master Data Base',
                'Master Data Base'[Reduction buckets] = _selbucket
            )
        )
    )

 

4. Create a clustered column chart(Axis:Reduction buckets of table OrderTable Values: Total Month)

yingyinr_2-1637573102852.png

Best Regards

Community Support Team _ Rena
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
v-yiruan-msft
Community Support
Community Support

Hi @THENNA_41 ,

I created a sample pbix file(see attachment), please check whether that is what you want.

1. Create a sorted table by manual typing. You can also put this sorted table on a cloud-based file (e.g. OneDrive), which makes it easy to maintain and refresh later.

yingyinr_0-1637572883576.png

2. Select the field "Reduction buckets" and sort by column "Order"

yingyinr_1-1637573004378.png

3. Update the formula of your measure [Total Month] as below:

 

Total Month = 
VAR _selbucket =
    SELECTEDVALUE ( 'OrderTable'[Reduction buckets] )
RETURN
    IF (
        _selbucket = "Total Month Variation",
        CALCULATE (
            SUM ( 'Master Data Base'[Value] ),
            ALLSELECTED ( 'OrderTable'[Reduction buckets] )
        ),
        CALCULATE (
            SUM ( 'Master Data Base'[Value] ),
            FILTER (
                'Master Data Base',
                'Master Data Base'[Reduction buckets] = _selbucket
            )
        )
    )

 

4. Create a clustered column chart(Axis:Reduction buckets of table OrderTable Values: Total Month)

yingyinr_2-1637573102852.png

Best Regards

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

i have created clusterd column chart  Using measure with  total value 
 
Below measuer i used in the graph : 
 
 
 
Total Month =
IF(SELECTEDVALUE('Total Month variation'[Reduction buckets])="Total Month Variation",CALCULATE(SUM('Master Data Base'[Value]),ALLSELECTED('Total Month variation'[Reduction buckets])),
SUM('Master Data Base'[Value]))
 
 
 
Now  i have created calculated column  like 
 
Total Month variation = UNION ( VALUES ( 'Master Data base'[Reduction buckets]), ROW ( "Reduction Buckets", "Total Month Variation" ) )
 
 
 
Now  my Grpah looks like 
 
THENNA_41_0-1637302924059.png

 

I want to make this graph order wise  like below 

 

THENNA_41_1-1637302966766.png

 

 
any idea . thanks in advance 
 

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.