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
sajjadkhan25
Helper I
Helper I

Need to filter table using 2,2 slicers

Hi Guys,

Hope all are doing good,
need one help,
I have one table in that 2 columns i.e type,date
i have to filter table column wise like 

TypeType
DateDate

 

Particularstypetype
1  
2  
3  

 

 

@amitchandak , @parry2k 

please help me with this

4 REPLIES 4
sajjadkhan25
Helper I
Helper I

Hi @Amit sir,

actuals and budget values shd be in one column so that i can put filter on it 

sajjadkhan25
Helper I
Helper I

Hi @amitchandak  sir,

i have table 

PerActual MarActual FebBudget Mar Budget Feb
COGS          (0.9)     (1.146)1.31.4

 

I should get like,

 AB
PerMonth AMonth B
Cogs  

 

A and B are slicers which shows actuals and budget 
even Month and Month will be slicers 
User should be able to select which actual or budget and can compare monthwise too 
example: Actual selected in both A and B slicers 
in Month A Feb Month B Mar 
data should be shown accordingly please suggest me how can i handle this.

@sajjadkhan25 , check if this power query code can help, to build correct table

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcvZ3D1bSUVKAAw0DPUtNmIiGoZ6hiRmIa6hnDCZNlGJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Per = _t, #"Actual Mar" = _t, #"Actual Feb" = _t, #"Budget Mar " = _t, #"Budget Feb" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Per", type text}, {"Actual Mar", type number}, {"Actual Feb", type number}, {"Budget Mar ", type number}, {"Budget Feb", type number}}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Per"}, "Attribute", "Value"),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Columns", "Attribute", Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), {"Attribute.1", "Attribute.2"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Attribute.1", type text}, {"Attribute.2", type text}}),
    #"Pivoted Column" = Table.Pivot(#"Changed Type1", List.Distinct(#"Changed Type1"[Attribute.1]), "Attribute.1", "Value", List.Sum)
in
    #"Pivoted Column"
amitchandak
Super User
Super User

@sajjadkhan25 , Not very clear


Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.