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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
UditJ
Helper III
Helper III

Merging two slicers with field parameters

I have two field parameters and they are put in a slicer and they are being used in a table as shown below 

UditJ_0-1711946411734.png

These are the field parameters for the two columns in the table:

Previous Month CPC Column 

Previous Value = {
    ("Previous Month CPM", NAMEOF('CrossChannel'[Previous Month CPM Value]) , 0),
    ("Previous Month CTR", NAMEOF('CrossChannel'[Previous Month CTR Value]) ,1),
    ("Previous Month VCR", NAMEOF('CrossChannel'[Previous Month VCR Value]), 2),
    ("Previous Month CPC", NAMEOF('CrossChannel'[Previous Month CPC Value]), 3)
}

CPC Column
KPI - Performance Analysis = {
    ("CTR", NAMEOF('CrossChannel'[CTR]), 0),
    ("CPC", NAMEOF('CrossChannel'[CPC]), 1),
    ("CPM", NAMEOF('CrossChannel'[CPM]), 2),
    ("VCR", NAMEOF('CrossChannel'[VCR]), 3)
}


Above two are field paramertes are put in a sclier and as per secelction its dispalyed in the table. I want to use a single slicer to update both the columns (Previous value & CPC) in the table. any suggestions ? 


@amitchandak 

1 ACCEPTED SOLUTION

Hi, @UditJ 

Thank you very much for your reply. The main function of this sync column is to establish a connection with another parameter table, so as to achieve synchronous filtering. This is just one of the ways.

 

 

Best Regards

Jianpeng Li

View solution in original post

3 REPLIES 3
v-jianpeng-msft
Community Support
Community Support

Hi, @UditJ 

Based on your description, I have created the following sample data:

vjianpengmsft_0-1712024352126.png

I created two field paramertes as shown in the image below:

vjianpengmsft_1-1712024436754.png

vjianpengmsft_2-1712024521887.png

 

vjianpengmsft_3-1712024541235.png

I'm using these two parameters in the table visual, as shown in the following image:

vjianpengmsft_4-1712024619197.png

I created a sync column with the following DAX:

Sync column =
SWITCH (
    'Previous Value'[Previous Value],
    "Previous Month CPM Value", "CPM",
    "Previous Month CTR Value", "CTR",
    "Previous Month VCR Value", "VCR",
    "Previous Month CPC Value", "CPC"
)

vjianpengmsft_5-1712024737499.png

The following relationship is established between the two parameter tables:

vjianpengmsft_6-1712024805892.png

Here are the results:

vjianpengmsft_7-1712024849278.png

vjianpengmsft_8-1712024864770.png

When I select the option for one of the slicers, both columns are updated at the same time. I've provided the PBIX file used this time below.

 

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

 

 

 

and what if there is a third column?  will be doing the same creating sync column ?

Hi, @UditJ 

Thank you very much for your reply. The main function of this sync column is to establish a connection with another parameter table, so as to achieve synchronous filtering. This is just one of the ways.

 

 

Best Regards

Jianpeng Li

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors