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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PoojaS5
Frequent Visitor

Change value in table based on slicer which has two fields

Greetings,

 

Below is the table where i have some sort of transit time condition status, which has 4 consecutive columns contains region, mode, gross status and net status.(where i have 20K+ line items)

DateRegionModeGross statusNet status
11/03/2022USAAirMetNot Met
17/03/2022CanadaAirMetNot Met
15/04/2022CanadaOceanNot MetMet
27/04/2022EUOceanNot MetNot Met
06/05/2022ChicagoAirMetMet

 

I want to create a table in powerBI where it has to show the status based on two slicers, where i need to include category as one slicer and statuses as one slicer.

PoojaS5_0-1679325109851.png

PoojaS5_1-1679325149371.png

so what i expect my output to look like is attached as reference,

which both the category and percentage has to be changed based on the slicer i choose,

percentage is nothing but the met status of the shipment on how much the month has achieved the performance

 

PoojaS5_2-1679325205717.png

 

1 REPLY 1
amitchandak
Super User
Super User

@PoojaS5 , better to unpivot columns Gross status, and Net status in the power query

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

 

Then you can have a measure

divide(countrows(filter(Table, table[Status]= "Met") ), countrows(Table) )

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.