I have a visual table that I made from different columns from different tables.
and I have a bar graph for the same set of data.
currently, the data is showing daily value. I have a time slicer that I set it week #.
the table would show daily value for the weeks I selected from the slicer.
I would like the table and the graph to show the weekly total.
How can I do that?
I would like the BI to mimic the excel screenshot I have below.
to show the values by weeks, or by month, instead of daily.
Hi @yfeng ,
You can create column named Week to calculate the week number in table KPIDates.
Week = WEEKNUM('DateKey'[Date])
Then, create measure Sum Per Week like DAX below..
Sum Per Week = CALCULATE(SUM('DataTable'[Your sum field]),FILTER(ALLSELECTED('DataTable'),'DataTable'[Week]=MAX('DataTable'[Week])))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I tried the WEEKNUM function, but it was telling me it is not allowed as part of calculated column DAX expressions on DirectQuery models.
is there any workaround while keeping it as Direct Query?
Also, the "E on dock" and "W on dock"
"DF MMR" and "RF MMR" are measures I created, both from different tables.
Based on my test connect to SQL Server Data base using Directquery mode, the WEEK function worked fine, could you show me the error message?
For the measures, you can use SUMX(table,[measure]) function.
Sum Per Week = CALCULATE(SUMX('sum field Table', [Your sum field]),FILTER(ALLSELECTED('DataTable'),'DataTable'[Week]=MAX('DataTable'[Week])))
Hi @yfeng , Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.
I was thinking suming the On Dock move and the Off Dock moves together,
but they are 2 different columns in the 2 different tables.
should I create a measure in each table first, then sum them together?
Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.
We spoke with Power BI Super User, Greg Deckler, about his charity work
Continue your learning in our online communities.