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.
select MAX(SeqID) from [dbo].[CT]
where [MonthId]=1
Here, CT is a calendar table.
Solved! Go to Solution.
Hi @Anonymous
try this
Measure = calculate(MAX(CT[SeqID]);CT[MonthId]=1)
Hi @Anonymous ,
Try CALCULATE (MAX(CT[SeqID], CT[MonthID] = 1)
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Please help in converting below SQL query to DAX-
Select A.*,(Currentmonth-1) As PreviousMonth from ( select max([SeqID])AS Currentmonth
from [dbo].[CT]
where [Month]=1)A
Hi @Anonymous ,
Try CALCULATE (MAX(CT[SeqID], CT[MonthID] = 1)
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Hi @Anonymous
try this
Measure = calculate(MAX(CT[SeqID]);CT[MonthId]=1)
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |