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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 39 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 94 | |
| 81 | |
| 34 | |
| 29 | |
| 25 |