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.
@Paulyeo11 create a calculated column as shown below
here is the code
Ageing Sort = SWITCH(TRUE(),
AND(Query1[AGING]>0,Query1[AGING]<=30),1,
AND(Query1[AGING]>30,Query1[AGING]<=60),2,
AND(Query1[AGING]>60,Query1[AGING]<=90),3,
AND(Query1[AGING]>90,Query1[AGING]<=120),4,
AND(Query1[AGING]>120,Query1[AGING]<=150),5,
AND(Query1[AGING]>150,Query1[AGING]<=180),6,BLANK())
this wil sort the column and you will get the required output as shown below
Appreciate a Kudos if this resolved your query !!
@Paulyeo11 create a calculated column as shown below
here is the code
Ageing Sort = SWITCH(TRUE(),
AND(Query1[AGING]>0,Query1[AGING]<=30),1,
AND(Query1[AGING]>30,Query1[AGING]<=60),2,
AND(Query1[AGING]>60,Query1[AGING]<=90),3,
AND(Query1[AGING]>90,Query1[AGING]<=120),4,
AND(Query1[AGING]>120,Query1[AGING]<=150),5,
AND(Query1[AGING]>150,Query1[AGING]<=180),6,BLANK())
this wil sort the column and you will get the required output as shown below
Appreciate a Kudos if this resolved your query !!
Hi @Paulyeo11
Create a new table with age or Days in Asceding to descending order and have an index from 1
In Power Query > you can create a table from existing table. (right click, Duplicate and remove other columns except Days/Age) and add column Index from 1
Join this new Table with your existing table and in your graph use this new table index in tooltip to sort as ascending/Desc.
Hope this helps.
Cheers,
-Namish B
@Paulyeo11 , Try a new column like
Aging 1 = [Aging]
Aging Sort = switch( true() ,
[Aging] ="1- 30" , 1 ,
[Aging] ="30-60" , 2 ,
// keep on adding
,8
)
and sort Aging 1 on Aging sort and use that in visual
Hi Amit
I get Aging Sort error :-
@Paulyeo11 , I have given two new columns, not one. The first I create to avoid circular dependencies
Aging 1 = [Aging]
Aging Sort = switch( true() ,
[Aging] ="1- 30" , 1 ,
[Aging] ="30-60" , 2 ,
// keep on adding
,8
)
Aging sort will become sort column of aging 1 and you will use aging 1 in visual
Hi Amit
Still have error :-
Hi Amit
Below script dont need to sort , case closed:-
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |