Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Using connection to a power bi service and running into an issue.
Table reporting month contains 1,2,3,4,5,6,7,8,9,10,11,12.
When I write the SWITCH below it doesnt find the table? Not sure what the issue is?
Short Month = SWITCH ('ProjectMetrics'[reportingMonth],
1, "Jan",
2, "Feb",
3, "Mar",
4, "Apr",
5, "May",
6, "Jun",
7, "Jul",
8, "Aug",
9, "Sep",
10, "Oct",
11, "Nov",
12, "Dec",
BLANK ()
)
What do you mean "it doesn't find the table?"
Proud to be a Super User!
The best way I can explain is with a screen shot. It does not recognize the table even though it exists in the database.
What error message is it giving you below that? Are you adding this as a column or a measure?
Proud to be a Super User!
I am seeting this up as a measure. Below is the error message when I drag the Short Month measure on the blan canvas.
Well it looks to me like the table is named "(green blur)_Project_ProjectMetrics" not "ProjectMetrics" but even then you can't refer to a naked column in a measure like that. You have to aggregate it somehow inside that switch. Probably using FIRSTNONBLANK is the best way.
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |