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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
JamesBurke
Helper II
Helper II

Rank x

Hi , 

 

Solved: Count Top 1 Rank per day - Microsoft Fabric Community

 

I'm intrested in doing something similar to this but for Months however my datasets are split into tables and do not have the "Sum of Points" as well as Team in one. 

 

I have multiple tables one being with Devices , one with device usages and one with the date. 

 

Screenshot 2024-05-16 165239.pngScreenshot 2024-05-16 165249.pngScreenshot 2024-05-16 165302.png

 

The device tables are connected with Dim device ID and The Date with Dim date id , i'm wondering if it's still possible to potentially create another table with the Month , Device and usages all in one table so i can create a rank conditonal column and then count how many times that store was rank one. 

 

Thanks , James. 

 

 

1 ACCEPTED SOLUTION
v-zhengdxu-msft
Community Support
Community Support

Hi @JamesBurke 

 

If you want to create another table with data from these 3 tables, CROSSJOIN could be a good choice.

Here I create a set of sample for your reference:

vzhengdxumsft_0-1715910100624.pngvzhengdxumsft_1-1715910107029.png

vzhengdxumsft_2-1715910116980.png

Then add a table:

Table = 
	FILTER(
		CROSSJOIN(
			SELECTCOLUMNS(
				'Device',
				'Device'[Values2],
				"DeviceID", 'Device'[ Dim device ID],
				"DateID", 'Device'[Dim date id]
			),
			'DeviceUsage',
			'Date'
		),
		[DeviceID] = 'DeviceUsage'[ Dim device ID] && [DateID] = 'Date'[Dim date id]
	)

The result is as follow:

vzhengdxumsft_3-1715910186124.png

 

Best Regards

Zhengdong Xu
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

1 REPLY 1
v-zhengdxu-msft
Community Support
Community Support

Hi @JamesBurke 

 

If you want to create another table with data from these 3 tables, CROSSJOIN could be a good choice.

Here I create a set of sample for your reference:

vzhengdxumsft_0-1715910100624.pngvzhengdxumsft_1-1715910107029.png

vzhengdxumsft_2-1715910116980.png

Then add a table:

Table = 
	FILTER(
		CROSSJOIN(
			SELECTCOLUMNS(
				'Device',
				'Device'[Values2],
				"DeviceID", 'Device'[ Dim device ID],
				"DateID", 'Device'[Dim date id]
			),
			'DeviceUsage',
			'Date'
		),
		[DeviceID] = 'DeviceUsage'[ Dim device ID] && [DateID] = 'Date'[Dim date id]
	)

The result is as follow:

vzhengdxumsft_3-1715910186124.png

 

Best Regards

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.