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.

VahidDM
Super User
Super User

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors