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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
ginalu
Helper I
Helper I

How to Display Data by Teacher_ID Only in a Power BI Visual without Being Affected by other Relation

Problem Explanation:

In the visualized table, even though the complete data in the LESSONN table includes multiple ord_id values and different user_org_id values for the same teacher_id, the visual seems to display data only for a specific user_org_id associated with that teacher_id, instead of showing all data for that teacher_id across all user_org_id values.

I want the visual to ignore user_org_id and display all rows associated with the selected teacher_id.

 

ginalu_0-1730702061851.png

 

update : 

When I break the relationship between the LESSONN table and the ORGUSER table, the count returns to normal. However, this visual only uses data from the LESSONN table, so I'm not sure why the related table affects it. I want to know how to count the number of teacher_ids independently, without considering which org_id they belong to, while still keeping the relationship active.

The tables are related through a key that combines teacher_id and org_id."

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ginalu ,

 

You can try creating a new table that contains only unique teacher_id values. This table will serve as a filter for your visual objects. Then, use DAX formulas to create measures that calculate the required values, which will ignore user_org_id and focus only on teacher_id.

vkongfanfmsft_0-1731311293400.png

TotalCohort = CALCULATE(SUM(Lessonin[Cohort]), ALLEXCEPT(Lessonin, Lessonin[teacher_id]))
TotalLessonMonth = CALCULATE(SUM(Lessonin[Lesson_Month]), ALLEXCEPT(Lessonin, Lessonin[teacher_id]))

vkongfanfmsft_1-1731311327019.png

 

Best Regards,
Adamk Kong

 

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

8 REPLIES 8
Anonymous
Not applicable

Hi @ginalu ,

 

You can try creating a new table that contains only unique teacher_id values. This table will serve as a filter for your visual objects. Then, use DAX formulas to create measures that calculate the required values, which will ignore user_org_id and focus only on teacher_id.

vkongfanfmsft_0-1731311293400.png

TotalCohort = CALCULATE(SUM(Lessonin[Cohort]), ALLEXCEPT(Lessonin, Lessonin[teacher_id]))
TotalLessonMonth = CALCULATE(SUM(Lessonin[Lesson_Month]), ALLEXCEPT(Lessonin, Lessonin[teacher_id]))

vkongfanfmsft_1-1731311327019.png

 

Best Regards,
Adamk Kong

 

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

Uzi2019
Super User
Super User

Hi @ginalu 

 

Yes. If you avoid org_user_id it will show aggregated data. you can use no summarization on lesson_month

Uzi2019_0-1730719074015.png

 

or if you just want to display the same information without org_user_id. just change the color of that org_cust_id like below

 

Uzi2019_2-1730719280283.png

 

 

changed specific column setting make it to similar color as a background.

Uzi2019_3-1730719399974.png

 

 

I hope above tricks would help you!

 

 

 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @Uzi2019 ,  

 

I confirmed that I turned off the summarized option, but it still only shows the count for a specific org_id.

For example, I actually have 20 teacher_ids, but in this visual table, it shows only 5 teacher_ids for a certain org_id under the same filter settings.

 

When I break the relationship between the LESSONN table and the ORGUSER table, the count returns to normal. However, this visual only uses data from the LESSONN table, so I'm not sure why the related table affects it. I want to know how to count the number of teacher_ids independently, without considering which org_id they belong to, while still keeping the relationship active.

The tables are related through a key that combines teacher_id and org_id."

hi @ginalu 

If possible can you share the pbix??? 

please check the filters that are being applied to the table..

 

take completely new page add all the teacher id n their data and check what it shows??

 

and if nothing is helping you you can share the pbix via open link..

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Uzi2019
Super User
Super User

Hi @ginalu 

 

You have taken only 3 columns from Lesson table in 1st visual. and in 2nd visual your are pointing Org_id which you have not taken in 1st table visual.

 

I am not able to understan what is missing , you have not taken org_id in first table. 

can you explain in detail??

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @Uzi2019, thank you for your response. I’ve updated my question description to clarify the details. Could you please review it and let me know if it’s clear.

Ritaf1983
Super User
Super User

Hi @ginalu 

Please provide a workable sample data and your expected result from that. It is hard to figure out what you want to achieve from the description alone.  

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 , thank you for your response. I’ve updated my question description to clarify the details. Could you please review it and let me know if it’s clear.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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