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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
sunyangjun1115
Frequent Visitor

table visual show all rows when adding a measure to it, what could be the reason and how to avoid


Hi, 

in Power BI, i have 3 tables as below: 

1) Company Code table

sunyangjun1115_0-1731240801476.png

2) Calendar Table

sunyangjun1115_1-1731240850449.png

3) Accounting Dcoument table

sunyangjun1115_2-1731240884481.png

"Company Code" Table and "Accounting Dcoument" Table has a relationship with common column "Company Code" in both tables.  there is no relationship between table "Calendar" and "Accounting Document". besides,  there is a measure "selected_lastdayofYM" which is used to get the last day of current selected year month from Calendar Table( i put a slicer in the report, and it conbines to the column "Year-Month" of table "Calenar_Table")

sunyangjun1115_3-1731241218156.png

 

in report page, i put a Table Visual and add some columns from table "Accounting Document" to it.  the data in the Table Visual can be filtered by the slicer(company code from table "Company"), means that if i  select any company in the slicer, the data in the table visual will be filtered based on the company that i selected in the slicer . see below screenshot.

 

sunyangjun1115_4-1731241415057.png

the problem is that when i add the measure into the Table Visual . all the accounting document data will be showed in the Table Visual no matter which company value i selected in the slicer. 

sunyangjun1115_5-1731241529779.png

i don't understand why this happen, can anyone hep to explain the reason and how to avoid this to happen. thanks in advance.

 

 



2 ACCEPTED SOLUTIONS
tamerj1
Super User
Super User

Hi @sunyangjun1115 

Please try

Latest Year Month =
IF ( NOT ISEMPTY ( Accounting_Dcoument ), MAX ( Calendar_Table[Year_Month] ) )

View solution in original post

@sunyangjun1115 

Glad to help. If you find the proposed solution satisfactory, please consider marking it as acceptable solution. 

View solution in original post

3 REPLIES 3
sunyangjun1115
Frequent Visitor

Hi @tamerj1 
it works as expect.  the problem has been  bothering me for a long time.  thank you so much for your  assistance. really appreciate ! 

@sunyangjun1115 

Glad to help. If you find the proposed solution satisfactory, please consider marking it as acceptable solution. 

tamerj1
Super User
Super User

Hi @sunyangjun1115 

Please try

Latest Year Month =
IF ( NOT ISEMPTY ( Accounting_Dcoument ), MAX ( Calendar_Table[Year_Month] ) )

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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