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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Filtering Problem

Hi,

 

There are 3 tables

Customer(custid,...)

Customer-route(routeid,custid)

Journeydate(date,routeid)

Journeydate and Customer-route tables linked using routeid

Customer-route and customer linked with custid

one customer can be in many route

one route can have many dates in the Journeydate

requirement is to : count number of customers in a date. So if 1 month is selected then it should actually count the number of customer in the route and sum this for 1 month(thats because in 1 month, same route will be repeated)

For EG: MondayRoute

in 1 month MondayRoute will be 4/5 . so total customer count should be(count of customer for MondayRoute multiply by 4/5)

 

To acheive this we have created a measure in customer- route table which counts the number of customers against each route. then we created a calculated column in journey date table to bring the above measure against each row. then we created a measure which will sum this calculated column. we are getting required result but the problem is.. it is not filtering based on any attribute of customer(eg. customer status active and inactive). So when displaying the final measure against Customer Status, it is not displaying correct number although the total is correct

 

Thank You.

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

Values in a calculated column are fixed. You may use SUMX to write a measure.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-chuncz-msft 

 

 

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors