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 want to build a report with a change to a specific time range. To do so, I have to rely on a table which gives me the name of the account and then the date where a specific action as been taken.
So for example I have a CSV with:
Client A; 01.05.2021
Client B; 01.01.2019
Client C; 01.10.2020
In my end table I want to show the number of sales before these dates and after these dates.
It should look similar to this:
Usual time intelligence functions won't work here. How do I solve this?
Thanks in advance 🙂
Solved! Go to Solution.
Hi @Berl21 ,
I assum your data looks like this:
Create measures via the following code:
sales before =
SUMX (
FILTER ( 'Table', [date] < SELECTEDVALUE ( 'special date'[special date] ) ),
[sales]
)
sales after =
SUMX (
FILTER ( 'Table', [date] >= SELECTEDVALUE ( 'special date'[special date] ) ),
[sales]
)
Result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Berl21 ,
I assum your data looks like this:
Create measures via the following code:
sales before =
SUMX (
FILTER ( 'Table', [date] < SELECTEDVALUE ( 'special date'[special date] ) ),
[sales]
)
sales after =
SUMX (
FILTER ( 'Table', [date] >= SELECTEDVALUE ( 'special date'[special date] ) ),
[sales]
)
Result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Berl21
you may try
Sales before =
COUNTROWS (
FILTER (
CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[Client name] ) ),
Table[Date] <= SELECTEDVALUE ( Table[Date] )
)
)
Sales after =
COUNTROWS (
FILTER (
CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[Client name] ) ),
Table[Date] >= SELECTEDVALUE ( Table[Date] )
)
)
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 |
---|---|
48 | |
26 | |
20 | |
14 | |
12 |
User | Count |
---|---|
57 | |
49 | |
43 | |
19 | |
18 |