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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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