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
yasemsem
Frequent Visitor

How to filter when slicer table does not have direct relationship with the to be filtered table

I want to get % of sales(AE) with Pipeline and booking in the pie chart

I created new column in the Sales table with the below code

 

yasemsem_0-1715845837736.png

Pie Chart: The above code works but it doesn't work when I filter using the Quarter. I want it to be dynamic depending on the quarter I am choosing to reflect the sales in this quarter

 

The issue is that SFDC quarter doesn't have a relationship with Sales , however, I believe the modeling is correct and what I need to change is in the calculated column to add something like selectedvalue, but I cannot get it to work

 

yasemsem_0-1715846214454.png

 

 

 

2 REPLIES 2
yasemsem
Frequent Visitor

Thanks for your response


The sales table actually is a dimension table with the names of all sales reps

I have a date table connected to the table of "bookings and pipeline" ( fact table ), the issue is that I cannot connect it to the sales table because it shouldn't have a date as it has only the information of the sales rep

 

"Sales Rep" table is called in the above screenshot = "CEEMETA SFDC Sales Roster"

 

I used this ""CEEMETA SFDC Sales Roster"" table to create a calculated column and check the bookings and pipeline with the filters shown in the screenshot of every sales rep so I would be able to create a % of who did have booking and pipeline and who did not

 

There could be a better way to do it, but it dd not occur to me..

v-nuoc-msft
Community Support
Community Support

Hi @yasemsem 

 

In response to your question, here is some advice I would give:

 

First, make sure that both the Sales table and the table containing the SFDC Quarterly information have a date column that can be used to create an indirect relationship through the Date table.

 

This Date table should contain all dates, quarters, etc. and link to your Sales and SFDC Quarterly tables.

 

You can create a metric that dynamically calculates the percentage of sales (AE) based on the selected quarter.

 

This metric can be used to select the current quarter in the slicer and then calculate sales for that quarter. Example:

 

SalesPercentage = 
VAR SelectedQuarter = SELECTEDVALUE('SFDCQuarterTable'[Quarter])
RETURN
CALCULATE(
    SUM('SalesTable'[AE]),
    FILTER(
        'SalesTable',
        'SalesTable'[Quarter] = SelectedQuarter
    )
) / CALCULATE(SUM('SalesTable'[AE]), ALL('SalesTable'))

 

Regards,

Nono Chen

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

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.