I have a simple SQL
query that i want to convert it to DAX
so that i can use it in Power BI
to create a new measure. This is the query :
SELECT [Value] FROM Core.tblConfigurations WHERE [Key] = 'ReportMinBase'
Here is the table that i want to execute this query on it :
I want the result of this DAX
query to be just "50" in this case.
Thanks in advance.
YourMeasure =
CALCULATE ( SUM ( TableName[Value] ), TableName[Key] = "ReportMinBase" )
The Key "ReportMinBase" is the Filter applied to retrieve the Value using the CALCULATE
function. Refer https://docs.microsoft.com/en-us/dax/calculate-function-dax for CALCULATE
function and its usage.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.