Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a column in one of my tables called "Campaigns". I would like to use the distinct values in this column to create a custom filter dropdown. Is this possible with the javascript API? I'm stumped.
Thanks!
@jcraocolici wrote:
I have a column in one of my tables called "Campaigns". I would like to use the distinct values in this column to create a custom filter dropdown. Is this possible with the javascript API? I'm stumped.
Thanks!
As far as I know, it is not possible to get the distict value of one column when loading the report. A custom filter demo for your reference.
Very easy, follow the steps
1. Load the dataset using IMPORT from the table.
2. Left sidebar in your dataset window right click on the query and choose refrence.
3. Goto the refrence query and remove all other columns leave the column where you want distinct values.
4. Right click the column and select remove duplicates. Close and apply.
Drag the column name from the refrence query on the slicer component and use first query fields on any other visual component. it will work.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
4 | |
4 | |
3 | |
3 | |
3 |