Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
There is a field Parameter that I have used and it has multiple Date Columns, I have a few issues with it
1. When I select the Parameter, It gives me the date, but when I change it, it doesn't give me another date but some random numerical values
2. I want to drill down the field date parameter to Month, Week, and Day how do I do it with SWITCH? I have created multiple columns of Week calculation for the different date field parameters, can anyone suggest another workaround for the same?
Solved! Go to Solution.
When you select a date from a parameter and see random numerical values instead of another date, it could be due to various reasons like data type mismatch or incorrect calculation. Here are a few steps to troubleshoot:
To drill down the field date parameter to Month, Week, and Day in Power BI, you can create separate calculated columns or measures using DAX functions. Here's how you can achieve this:
You can use the SWITCH function to create calculated columns for Month, Week, and Day. Here's an example:
MonthColumn =
SWITCH(
TRUE(),
ISBLANK([YourDateField]), BLANK(),
TRUE(), FORMAT([YourDateField], "MMMM")
)
WeekColumn =
SWITCH(
TRUE(),
ISBLANK([YourDateField]), BLANK(),
TRUE(), "Week " & FORMAT(WEEKNUM([YourDateField]), "0")
)
DayColumn =
SWITCH(
TRUE(),
ISBLANK([YourDateField]), BLANK(),
TRUE(), FORMAT([YourDateField], "DD-MMM-YYYY")
)
Replace [YourDateField] with your actual date field name.
If you have multiple date fields and want to create week calculations for each of them, you can create separate calculated columns or measures for each date field using DAX functions like WEEKNUM to extract the week number.
When you select a date from a parameter and see random numerical values instead of another date, it could be due to various reasons like data type mismatch or incorrect calculation. Here are a few steps to troubleshoot:
To drill down the field date parameter to Month, Week, and Day in Power BI, you can create separate calculated columns or measures using DAX functions. Here's how you can achieve this:
You can use the SWITCH function to create calculated columns for Month, Week, and Day. Here's an example:
MonthColumn =
SWITCH(
TRUE(),
ISBLANK([YourDateField]), BLANK(),
TRUE(), FORMAT([YourDateField], "MMMM")
)
WeekColumn =
SWITCH(
TRUE(),
ISBLANK([YourDateField]), BLANK(),
TRUE(), "Week " & FORMAT(WEEKNUM([YourDateField]), "0")
)
DayColumn =
SWITCH(
TRUE(),
ISBLANK([YourDateField]), BLANK(),
TRUE(), FORMAT([YourDateField], "DD-MMM-YYYY")
)
Replace [YourDateField] with your actual date field name.
If you have multiple date fields and want to create week calculations for each of them, you can create separate calculated columns or measures for each date field using DAX functions like WEEKNUM to extract the week number.
User | Count |
---|---|
54 | |
47 | |
19 | |
16 | |
15 |
User | Count |
---|---|
114 | |
44 | |
44 | |
28 | |
22 |