Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi
I have made some measures that I'm going to use in a custom KPI card. They are as follows:
@hans3400 , is there a date selected on the page? because if there is no date then the previous month's takes first data in date table
Try like
This Month =
var _max = eomonth(if(isfiltered('Date'),MAX( 'Date'[Date]) , today()),0)
var _min = eomonth(_max,-1)+1 ,
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
Last Month =
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _max = eomonth(_max1,-1)
var _min = eomonth(_max1,-2)+1
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
Why previousmonth does not give result when datesmtd is giving it: https://youtu.be/1KkoJehRVeg
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
I should say that my date column looks like this:
1. january 2022
1. feburary 2022
1. march 2022
and so on
I only get data each month
No date is selected. The goal is to get it to work on a clean report, so no filters or nothing. I thought that I would get the correct values from PREVIOUSMONTH, so it would give me the downloads from October (If the last date is 1. november 2022). I will try your suggestions. Thank u so much.
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |