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.
Hello, I started using Power BI one month ago. I am really happy with this community.
I have the "Real" column. I want to compare each value with the value of 1/12/2018.
The meassure I created is this one:
Now, I added a slicer, so I want to compare each value with the first value on the Slicer. When I create a meassure that takes the min value of "Fecha" I get an error message. How can I solve this?
Thank you very much for your help-
Solved! Go to Solution.
Hi @ry22749
The below should do the trick.
Measure = VAR f = CALCULATE( MIN(Pautas_Macro[Fecha]); ALLSELECTED() ) RETURN CALCULATE( SUM(Pautas_Macro[Real]); Pautas_Macro[Fecha] = f )
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ry22749
The below should do the trick.
Measure = VAR f = CALCULATE( MIN(Pautas_Macro[Fecha]); ALLSELECTED() ) RETURN CALCULATE( SUM(Pautas_Macro[Real]); Pautas_Macro[Fecha] = f )
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ry22749 -
You could use a variable to store the MIN value and then use it, like this:
Medida 2 = var min_date = MIN(Pautas_Macro[Fecha]) return CALCULATE(SUM(Pautas_Macro[Real]); Pautas_Macro[Fecha] = min_date)
Hope this helps,
Nathan
@Anonymous Thanks for your help! But that meassure gives this: ("Medida3")
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 |
---|---|
107 | |
94 | |
77 | |
63 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |