The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have data like this:
Cities | Criteria | Value |
Mumbai | Criteria1 | 376 |
Mumbai | Criteria2 | null |
Chennai | Criteria1 | 471 |
Chennai | Criteria2 | 254 |
Delhi | Criteria1 | null |
Delhi | Criteria2 | 481 |
pivot for better understanding:
Cities | Criteria1 | Criteria2 | Grand Total |
Mumbai | 376 | 376 | |
Chennai | 471 | 254 | 725 |
Delhi | 481 | 481 |
so now when i am creating Clustered Column Chart i need cities having only Criteria 1. Means if in any city Criteria 1 is blank then i dont want graph to show that city. Currently it is showing Criteria 2 which i dont want.
Basically from the above data i need details only for mumbai and channai. my clustered chart should show only these 2 cities with both critieria
any solution?
its better if i can do it throgh calculated column.
thanks in advance.
Hi @Sonam_Pillai,
The best simple way is to use 'Criteria' field on your 'visual level filter' with advanced filter mode 'not' option and type the values which you do not want to be displayed.
In addition, you can create a calculate table to extract the Criteria field values without relationship mapping and use it to create a slicer, then write a measure to filter records based on selection and use on raw chart visual level filter to filter records.
Calculate table:
Selector =
VALUES ( Table[Criteria] )
Measure filter formula:
measure =
VAR selected =
ALLSELECTED ( Selector[Criteria] )
RETURN
IF (
COUNTROWS (
FILTER ( ALLSELECTED ( Table ), [Criteria] IN selected && [Value] <> null )
) > 0,
"Y",
"N"
)
Regards,
Xiaoxin Sheng
@Sonam_Pillai , You can use visual level filter
Or measure like
Calculate(sumX(filter(table,table[city]<> ,"Delhi" Table[value]))
Thank you. @amitchandak
This is working in table graph but i am not able to convert the same table into Clustered chart.
how to do it?
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |