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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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!!

 

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors