March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello!
I need to create a measure that sum a column of a table filter by the date and the name of the selected value but in this case is posible to have multiple values selected. So far I have this measure
Hi, @santiagouc
You may be able to try the following DAX expressions:
Potencial Actual =
CALCULATE(
SUM(MedidoresLiquido[Potencial]),
FILTER(
ALLSELECTED(RecoleccionIny),
MedidoresLiquido[CodPozo] IN VALUES(RecoleccionIny[NombreRecobro])
),
MedidoresLiquido[Fecha].[Date] = TODAY() - 1
)
This measure is used to consider all the choices made in and then filter based on those choices.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
The second condition within the AND() function seems redundant and therefore so does the AND() function itself. Create a Calendar Table with a relationship (Many to One and Single) from the Fecha column to the Date column of the Calendar Table. Simplify your measure to:
Measure = CALCULATE(SUM(MedidoresLiquido[Potencial]);datesbetween(Calendar[date];today()-1;today()-1))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |