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 need to calculate the total number of jobs from last year against this year, but only up to today. This runs from a Financial year Nov - Oct, so i need to display the figures for FY 2019 Nov - (TODAY) instead of the full year.
I have managed the follwing - however, whilst it shows the correct values (highlighted), it shows other values too which arent needed. As I won't actually be using this in a table i need to make sure it only shows the values for the same period. Any ideas what i cam doing wrong?
Hi, you can try creating a condition that set as BLANK() the result if the date is after today. Like this:
Medida =
IF (
MAX(Table[DateColumn]) < NOW(),
CALCULATE (
DISTINCTCOUNT(FactShipment[ShipmentID]),
SAMEPERIODLASTYEAR(DateDim[MasterDate])
),
Blank()
)
That will work for the table for sure. If the requirement is another visualization, let us know what you need to build.
Regards,
Happy to help!
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 |
---|---|
38 | |
26 | |
20 | |
15 | |
8 |
User | Count |
---|---|
69 | |
47 | |
46 | |
20 | |
16 |