-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing DAX for comparing result of #221
Comments
In this example, we assume that you have a table named "TripsTable" with a column named "Date" that contains the dates of the trips and a column named "Trips" that contains the number of trips. You can adjust the code above according to your actual table name and relevant column names. It will return the difference between the total trips for the first week of the current month and the total trips for the first week of the previous month. Make sure to replace "TripsTable" with the correct name of your table and "Trips" with the correct name of the column that contains the number of trips. |
// Get the current date // Get the date of the first day of the current month // Get the date of the first day of the previous month // Get the date of the last day of the first week of the current month // Get the date of the last day of the first week of the previous month // Calculate the total trips for the first week of the current month // Calculate the total trips for the first week of the previous month // Return the difference in total trips between the first week of the current month and the first week of the previous month |
来信收到,谢谢,祝您一切顺利!
|
邮件已收到,我会尽快回复。
|
您好,您的邮件我已收到!祝工作顺利,天天开心。。。
|
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
I'm learning |
Can someone send how to write dynamic code in DAX to retrieve first week of data for previous month to compare it to first week of data of current month.
For example . i want to find out total trips of a car in 1-Sep-2022 to 7 -Sep-2022 to total trips of a car in 1 -Oct 2022 to 7-Oct 2022
The text was updated successfully, but these errors were encountered: