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.
I think I have managed to figure out creating a matrix of % Order quanity over the days of the week
I added Year Week to the SQL Dim Date Table. For example
202101
202152
(Padding out the weeks 1 to 9 and changing back to number)
And then created a DAX Query based on a question I asked yesterday
Hi @DebbieE
Try this:
Order Quantity by Week % =
VAR varOrderQtyWeek =
ADDCOLUMNS (
CALCULATETABLE ( VALUES ( DimDate[Year Week] ), REMOVEFILTERS ( DimDate[Day Nme] ) ),
"SumQ", SUM ( FactResellerSales[Order Quantity] )
)
VAR _WQ =
SUMX ( varOrderQtyWeek, [SumQ] )
VAR _DWQ =
SUM ( FactResellerSales[Order Quantity] )
RETURN
_DWQ / _WQ
DimDate[Day Nme] = column you used in the matrix's columns.
If it does not work, can you share a sample of your data?
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
The above didnt work
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 |
---|---|
49 | |
27 | |
20 | |
15 | |
12 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |