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, I have 2 Slicers:
1. Per YEAR (single)
2. Per Month (single)
When I select a month I need a TOTALYTD from the start of the year to the end of selected Month.
I need also a column with the total from the selectedmonth+1 till the end of the year.
Thanks,
Solved! Go to Solution.
Hi @pceglie,
You can refer to below formual to achieve your requirement.
Measures:
SelectYear = if(HASONEVALUE(Table[Year]),VALUES(Table[Year]),BLANK()) SelectMonth = if(HASONEVALUE(Table[Month]),VALUES(Table[Month]),BLANK()) TotalOfSlicer = SUMX(FILTER(ALL(Table),AND([Date]>=DATE([SelectYear],1,1),[Date]<=DATE([SelectYear],[SelectMonth]+1,1)-1)),[Amount]) Remaining total = SUMX(FILTER(ALL(Table),AND([Date]>=DATE([SelectYear],[SelectMonth]+1,1),[Date]<=DATE([SelectYear],12,31))),[Amount])
Regards,
Xiaoxin sheng
Hi @pceglie,
You can refer to below formual to achieve your requirement.
Measures:
SelectYear = if(HASONEVALUE(Table[Year]),VALUES(Table[Year]),BLANK()) SelectMonth = if(HASONEVALUE(Table[Month]),VALUES(Table[Month]),BLANK()) TotalOfSlicer = SUMX(FILTER(ALL(Table),AND([Date]>=DATE([SelectYear],1,1),[Date]<=DATE([SelectYear],[SelectMonth]+1,1)-1)),[Amount]) Remaining total = SUMX(FILTER(ALL(Table),AND([Date]>=DATE([SelectYear],[SelectMonth]+1,1),[Date]<=DATE([SelectYear],12,31))),[Amount])
Regards,
Xiaoxin sheng
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 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |