cancel
Showing results for
Did you mean:
Anonymous
Not applicable

## Table rows increased drastically when measure is added to table

Hi All,

I have a table visual, where I have to add one measure. The table consists of data from two dimensions tables (in many to many relationship) and one fact table. As soon as I add the measure into the visual, the rows in the table gets increased drastically. Ideally, the number of rows should be 8 but it is getting increased to more than 7K.

The measure looks like:

Any support is highly appreciated.

Regards

1 ACCEPTED SOLUTION
Community Support

Hi @Anonymous

It sounds like measure expression expands your records hidden by power bi. I'd like to suggest you add 'if statement' to your formula to check if the current fact table exists in correspond records.

Measure =
VAR curr =CALCULATE ( SUM ( Fact[Amount] ), VALUES ( Table[Date] ) )
RETURN
IF ( curr <> BLANK, TODAY )

Best Regards

Community Support Team _ Ailsa Tao

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

4 REPLIES 4
Community Support

Hi @Anonymous

It sounds like measure expression expands your records hidden by power bi. I'd like to suggest you add 'if statement' to your formula to check if the current fact table exists in correspond records.

Measure =
VAR curr =CALCULATE ( SUM ( Fact[Amount] ), VALUES ( Table[Date] ) )
RETURN
IF ( curr <> BLANK, TODAY )

Best Regards

Community Support Team _ Ailsa Tao

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

New Member

Worked!

Anonymous
Not applicable

Thank you for your kind support. It is exposing all the hidden rows. I have tried your solution, and it worked!!!

Regards

Anonymous
Not applicable

I am using LIVE connection

Announcements

#### Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

#### Power BI March 2023 Update

Find out more about the March 2023 update.

#### March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors
Top Kudoed Authors