Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 151 | |
| 130 | |
| 109 | |
| 79 | |
| 54 |