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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
arnoutdt
Frequent Visitor

Total vendor Value but with filters

Hello all,

 

I want to create 'vendor buckets' based on their value. This I already arranged; that for a certain vendor I see the bucket where it belongs to.

In my master data I have created vendor buckets that checks these to total vendor value and independent vendor buckets. 

 

However, creating the following

Total Vendor Value = summarize(Masterdata;Masterdata[Vendor number];"Total Vendor Value";SUM(Masterdata[Value (EUR)]))

it creates buckets on the whole tabel.

 

I only want to render total vendor value on

- last 12 months

- One Plant; "P010"

- Purchasing groups "110" and "120"

 

How can I add these constraints to the total vendor value? 

 

 

In my master data it looks like;

Vendor buckets = CALCULATE( VALUES(Vendorbuckets[Bucket Name]); FILTER(Vendorbuckets;RELATED('Total Vendor Value'[Total Vendor Value])>= Vendorbuckets[start] && RELATED('Total Vendor Value'[Total Vendor Value]) < Vendorbuckets[end]))

 

where vendor buckets are fixed values as you can see in the table below.

 

thank you for helping out!

bucketsbucketstotal vendor valuetotal vendor valuemasterdatamasterdata

1 ACCEPTED SOLUTION

Hi @arnoutdt,

 

You can add filter function to the table, then use filtered table as the source table of the summarize function.

Total Vendor Value =
SUMMARIZE (
    FILTER ( Masterdata; [Plant] = "P010" );
    [Vendor number];
    "Total Vendor Value"; SUM ( Masterdata[Value (EUR)] )
)

Regards,

Xiaxoin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

6 REPLIES 6
v-shex-msft
Community Support
Community Support

HI @arnoutdt,

 

Please share the sample data for further testing and analysis.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

I don't see how I can share sample data. 

Hi @arnoutdt,

 

You can upload to onedrive/google drive, then share the file link here.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hello,

 

Sorry but I can't share this.

 

how can I add filters to the following?

 

I have created a table :

 

Total Vendor Value = summarize(Masterdata;Masterdata[Vendor number];"Total Vendor Value";SUM(Masterdata[Value (EUR)]))

 

but how can I add some constraints/filters to this value:

Where 

- Plant = P010

 

much appreciated!

Hi @arnoutdt,

 

You can add filter function to the table, then use filtered table as the source table of the summarize function.

Total Vendor Value =
SUMMARIZE (
    FILTER ( Masterdata; [Plant] = "P010" );
    [Vendor number];
    "Total Vendor Value"; SUM ( Masterdata[Value (EUR)] )
)

Regards,

Xiaxoin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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