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

Filter dataset before applying summarize (create new table ) statement

I have a data model in PowerBI which consists of a Fact Table and a dimesnion

For simplicity sake ill call it Fact and Dimension.

Fact:

FactIDDimesnionIDValueDateTime
1101/1/2019 08:01
2112/1/2019 08:02
3213/1/2019 08:03
4114/1/2019 08:15
5315/1/2019 08:30
6306/1/2019 08:45
7317/1/2019 08:00

 

Dimesnion

 

DimensionIDName
1A
2B
3C
4D
5E
6F
7G

The relationship between these 2 tables are dimesnionid on dimensionid

 

Now I need to create a Summarize statement like the following:

Table =
SUMMARIZE (
    'Fact',

    'Dimension'[Name],
    "Value",SUM('Fact'[Value])

)

 

 

Now this seems to work as a once off.

 

But now when i filter the date on the front end in a filter. The values of the calculated table does not adjust according to the filter.

 

So ideally I would like a solution where the summarize statement is based on the filtered set of data on the fact and not the full dataset.

 

So When i filter the datetime on the report. The table must recalculate based on a new subset of Fact Records.

 

Im stuck.

 

 

Please help.

 

Arnoux

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

@Arnoux ,

 

Power bi doesn't support dynamic calculate column/table so I'm afraid this can't be achieved. Filters/Slicer charts are in view level while the summarized table is in model level, in power bi, view level can't filter data in model level.

 

Community Support Team _ Jimmy Tao

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

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@Arnoux ,

 

Power bi doesn't support dynamic calculate column/table so I'm afraid this can't be achieved. Filters/Slicer charts are in view level while the summarized table is in model level, in power bi, view level can't filter data in model level.

 

Community Support Team _ Jimmy Tao

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

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.