cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gpaula
Frequent Visitor

I need count values in another no related table

I have 4 tables. First one with region, day and a grade, second one with the region details and a third one with month and a collumn with the information about the grade necessity (yes or no) for witch month in the year and the last one is the calendar table. 

gpaula_0-1634337677842.png

 

I want a tale with the regions, information about necessity of grade (table3) and the count of grades (table1), it is possible do that with mesuares? It s important that i can use date filter in the dashboard, like the picture below.

gpaula_1-1634337696669.png

 

PS: i cant conect table 1 and 3 because the many to many conection.

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @gpaula ,

 

To my understand, "Month" column in Table 3 represents each month. It should be matched with one column represents each month, too. 

 

Therefore, please create a Month column in your Calendar table and use this column to create relationship between Calendar table and Table 3 like below.

Month = EOMONTH([Date],-1)+1

Icey_2-1634625253209.png

Icey_1-1634623386861.png

 

Then you can get what you want:

Icey_0-1634622623490.png

For more details, please check the attached .pbix file.

 

 

Best Regards,

Icey

 

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

3 REPLIES 3
Icey
Community Support
Community Support

Hi @gpaula ,

 

To my understand, "Month" column in Table 3 represents each month. It should be matched with one column represents each month, too. 

 

Therefore, please create a Month column in your Calendar table and use this column to create relationship between Calendar table and Table 3 like below.

Month = EOMONTH([Date],-1)+1

Icey_2-1634625253209.png

Icey_1-1634623386861.png

 

Then you can get what you want:

Icey_0-1634622623490.png

For more details, please check the attached .pbix file.

 

 

Best Regards,

Icey

 

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

VahidDM
Community Champion
Community Champion

HI @gpaula 

 

Can you share a sample of your table data?

 

Appreciate your Kudos!!

 

gpaula
Frequent Visitor

Hi. Of course.

 

Table 1

RegionCodRegionDayGrade
A0118/10/202110
B0218/10/20219
A0119/10/20219
B0220/10/20218
C0320/10/20219

 

Table 2:

CodRegionDetail1Detail2
01xxxyyy
02aaabbb
03cccddd

 

Table3:

CodRegionMonthRequested?
0101/10/2021yes
0101/11/2021no
0201/10/2021yes
0201/11/2021yes
0301/10/2021yes
0301/11/2021yes

 

Is it enough? 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.