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.
Need to write sql query from dax query can anybody help me with that
Total Calendar Days Pending – WIP Transactions = |
VAR SelLastDate = [Selected Last Date v2] |
VAR SummaryTable = |
CALCULATETABLE( |
SUMMARIZE(ClaimCase, ClaimCase[ClaimId], ClaimCase[Calendar Days Pending]), |
USERELATIONSHIP(ClaimCase[CaseCreationDateId], DimDate[DateId]), |
ALL(DimDate), |
ClaimCase[CaseCreatedOn] <= SelLastDate, |
ClaimCase[CompletedOn] = BLANK()) |
RETURN |
SUMX(SummaryTable, ClaimCase[Calendar Days Pending]) |
Something like this
Select sum( ClaimCase[Calendar Days Pending]) from (
select distinct ClaimCase.[ClaimId], ClaimCase.[Calendar Days Pending]
from ClaimCase inner join DimDate on (ClaimCase.[CaseCreationDateId]= DimDate.[DateId])
where ClaimCase. [CaseCreatedOn] <= ? // Date you have to pass
and ClaimCase[CompletedOn] is null
)
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |