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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
dominicghr
Frequent Visitor

Table Column as Slicer

Hey guys!

 

As you can see on the screenshots below, I've created a scatter plot with maxCurrentCutter and maxCurrentNormal as values with python script, because I want the date on the x-axis.

 

Now I want to filter the plot after maxCurrentCutter and -Normal with a slicer (in python you can't just click on the legend becuase it is not interacitve so I have to do it with a slicer). 

 

But the problem is, 'maxCurrentCutter' & -Normal' are columns in the 'testDataCutter' table. This means that when I transfer these two column names to a slicer, all the values of the respective category (e. g. 6. 4, 3. 7,  . . . ) are on the slicer and not their names themselves.
 
Is there a way to create such a slicer? Or any other possiblity?
 

dominicghr_0-1712566586041.png

dominicghr_1-1712566626061.png

 

Best regards,

Dominic

 

2 REPLIES 2
v-zhengdxu-msft
Community Support
Community Support

Hi @dominicghr 

 

Maybe you can try to use the Field parameter.

First of all, you should open the Field parameter in the Options > Preview features.

vzhengdxumsft_1-1712627097971.png

Then restart the power bi and you can use the field parameter in the Modeling pane .

vzhengdxumsft_2-1712627194753.png

 

Here's the link which can help you:

Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-zhengdxu-msft, that helps but I do not know how to implement the field parameter in the python Code. But I hope I figure it out.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.