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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Johnsie
Frequent Visitor

Create tables using measures

Hello,

 

I created some calculated tables using SUMMARIZE() but these created tables are not able to be filtered by other tables when used in a visual.

Is there a way to create calculated tables using measures so that the data is able to be filtered by the tables from which it was calculated or is there another way to do it?

 

For example, I want to calculate the sales of open projects per year and month in another table to show it in a visual and to be able to filter it by the columns Business Unit or Country in the table Projects. I know I could show this in a visual using the table Projects but this is only used as an example.

 

Sales of Projects (Open) =
SUMMARIZE (
    'Projects',
    'Projects'[Created On].[Year],
    'Projects'[Created On].[Month],
    "Full Production",
        CALCULATE (
            SUM ( 'Projects'[Sales] ),
            CONTAINSSTRING ( 'Projects'[Status ], "Open" )
        )
)

 

Thanks for your help.

1 ACCEPTED SOLUTION
v-tianyich-msft
Community Support
Community Support

Hi @Johnsie ,

 

Calculated tables can't be filtered, you can create relationships and then show the effect you want by new parameter, like this:

vtianyichmsft_0-1699263364450.pngvtianyichmsft_1-1699263377773.png

 

relationship:

vtianyichmsft_2-1699263417267.png

 

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

View solution in original post

2 REPLIES 2
v-tianyich-msft
Community Support
Community Support

Hi @Johnsie ,

 

Calculated tables can't be filtered, you can create relationships and then show the effect you want by new parameter, like this:

vtianyichmsft_0-1699263364450.pngvtianyichmsft_1-1699263377773.png

 

relationship:

vtianyichmsft_2-1699263417267.png

 

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

lbendlin
Super User
Super User

All the secrets of SUMMARIZE - SQLBI

Best practices using SUMMARIZE and ADDCOLUMNS - SQLBI

 

In short, use SUMMARIZECOLUMNS and add the "Full Production"  column in a later step.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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