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 all,
I face an issue with a measure that looks simple but gives me difficulties.
The measure's objective is to return the count of trips on power plants and the difficulty is that the database has changed last year so we have to calculate the measure in a different way :
Here is my measure :
Solved! Go to Solution.
@Cado_one , Based on what I got. Try a measure like
nbDeplacements =
VAR ALTAIR_Access = calculate(COUNTROWS(GROUPBY(gmao_BI,gmao_BI[LocalisationBI],gmao_BI[DebutInterBI])), filter(gmao_BI,gmao_BI[DebutInterBI]<DATE(2020,10,28)))+0
VAR MASTEM_Access = calculate(SUM(gmao_BI[NbreAccesSite]), filter(gmao_BI,gmao_BI[DebutInterBI]>DATE(2020,10,27)))+0
RETURN ALTAIR_Access + MASTEM_Access
@Cado_one , Based on what I got. Try a measure like
nbDeplacements =
VAR ALTAIR_Access = calculate(COUNTROWS(GROUPBY(gmao_BI,gmao_BI[LocalisationBI],gmao_BI[DebutInterBI])), filter(gmao_BI,gmao_BI[DebutInterBI]<DATE(2020,10,28)))+0
VAR MASTEM_Access = calculate(SUM(gmao_BI[NbreAccesSite]), filter(gmao_BI,gmao_BI[DebutInterBI]>DATE(2020,10,27)))+0
RETURN ALTAIR_Access + MASTEM_Access
It's perfect thanks !
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |