Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I am trying to create a table visualization that shows the week number for a date coming a column full of dates. The best i can do is get one date to appear using either the LASTNONBLANK function, but i cannot get more than one value to show. Instead I get the following error "A table of multiple values was supplied where a single value was expected". Is the weeknum function unable to cycle through column and produce more than one value? Any guidance is appreciated, thanks
Here is my code to try and produce the table:
Solved! Go to Solution.
Hi @jlandsm4785 ,
Do you want to the week number of the field [WeekEnding]? If yes, you can create a calculated column as below to get it:
Or you can update the formula of your measure [DateMeasure] as below:
DateMeasure = WEEKNUM(MAX(ShiftData[WeekEnding]),1)
Best Regards
Hi @jlandsm4785 ,
Do you want to the week number of the field [WeekEnding]? If yes, you can create a calculated column as below to get it:
Or you can update the formula of your measure [DateMeasure] as below:
DateMeasure = WEEKNUM(MAX(ShiftData[WeekEnding]),1)
Best Regards
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
60 | |
60 | |
54 | |
38 | |
27 |
User | Count |
---|---|
86 | |
61 | |
45 | |
41 | |
39 |