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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
Diegoaraujo
New Member

When creating a new table using Summarizecolumns, can I use a parameter?

Hi Guys,

I've created a new table based on an existing one using the following DAX:

 

  • New Table =
    SUMMARIZECOLUMNS (
        'Original - wind cap factor'[Hourly Wind Max Gust 10m (km/h)],
        'Original - wind cap factor'[Year],
        FILTER (
            'Original - wind cap factor',
            'Original - wind cap factor'[Hourly Wind Max Gust 10m (km/h)] > 80))
 
This new table has 7 rows only -  which is correct for what I need.
 
However, instead of having the fixed value in blue 80, I would like to use a parameter (numeric field) I've created in the visuals - so that the user could change the parameter as he needs and the numbers get recalculated based on that.
This parameter is created under the Modelling tab - New pArameter - Numeric Field.
 
The problem is that when I have it as fixed value 80 it works, but when I use the parameter, it does not work.
 
Below is the DAX I tried to use linking to the parameter:

  • New Table =
    SUMMARIZECOLUMNS (
        'Original - wind cap factor'[Hourly Wind Max Gust 10m (km/h)],
        'Original - wind cap factor'[Year],
        FILTER (
            'Original - wind cap factor',
            'Original - wind cap factor'[Hourly Wind Max Gust 10m (km/h)]
                SELECTEDVALUE ( '.Wind speed'[Wind speed] )
        )
    )

When I use the above DAX linking to the parameter, the amount row of grows as it does not summarize the columns as I wanted.

 

Would you guys be able to help me make it work?

 

Below is a photo of how this parameter is shown for the users:

Diegoaraujo_0-1695800898897.png

Thanks,

Diego

 


 

1 REPLY 1
tamerj1
Super User
Super User

@Diegoaraujo 

Calculated tables do not interact with the filter context. You have to rely completely on measures. 

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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