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 together,
i need for my report a calculation to the actual year, month, quartal and week
year, month and quartal with the function TOTALQTD.
For the actual week i have use the code:
Solved! Go to Solution.
@leazimmer , Not very clear, Refer my blog on WOW and WTD , that should help
Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8
@leazimmer Hey ,
first create a date hirerachy then drag that to a slicer from there you will get Year ->Month -> Week->Date
from slicer itself you can slice and dice different level of data .
then
sales = calculate(sum(tablename[sales])
drag that in to the matrix
you can slice month you will monthly data
for Time intelligence related dax a
you can use Dateadd and sameperiodlastyear (Year on year comparision) dax function
YTD = calculate(sum(tablename[sales]),dateytd(date[date])
last 4 week = calculate(sum(table[sales]),dateadd(date[date],-28,day)
Hi @leazimmer ,
Sorry for that maybe I'm not getting what actually you are trying to do. I'm confused about the expression given without any data information.
Could you please share some sample data and the expected result to have a clear understanding of your question? I can do some tests for you.
You can save your files in some cloud sharing platforms and share the link here.
How to provide sample data in the Power BI Forum - Microsoft Power BI Community
Do you want to distinctcount the number of calendar weeks in each category? I did a test. Is the following result what you want?
Weeknumber = WEEKNUM('Sheet1'[Date],2)
Measure =
CALCULATE(
DISTINCTCOUNT('Sheet1'[Weeknumber]),
ALLEXCEPT(Sheet1,Sheet1[Category])
)
Result:
Best Regards,
Yuna
Thank you very much for your fast answer, but my result is a blank field
That is the customized code
@leazimmer , Not very clear, Refer my blog on WOW and WTD , that should help
Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |