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.
Hi all,
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?
Hi @Anonymous ,
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.
Best regards
Amy
Hi Amy,
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?
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 @Anonymous ,
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])))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Amy,
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.
Hi @Anonymous ,
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])))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |