Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Pandadev
Post Prodigy
Post Prodigy

Measured table built from measures

Hi I am trying to create 30 measures to build a table to get a count of rows where the following measures are met

Dax Formula in column - Last Flight = 1 , this is always set to 1 , so evry row with latest flight , based on last flightid has a 1 added

Measure - Diff TU Date = counts days since the last flight took place , I wanted to get a count of how many flights there were for Diff TU range 1 to 30) , so I was going to create 30 formulas 

 

I attempted these measures , but the value is coming back the same for each of the measures shown below

V3 Tracked -1 = CALCULATE(COUNTAX('TU Feed','TU Feed'[Diff TU Date]=1),'TU Feed'[Last Flight]=1)

V3 Tracked -2 = CALCULATE(COUNTAX('TU Feed','TU Feed'[Diff TU Date]=2),'TU Feed'[Last Flight]=1)

V3 Tracked -3 = CALCULATE(COUNTAX('TU Feed','TU Feed'[Diff TU Date]=3),'TU Feed'[Last Flight]=1)

V3 Tracked -4 = CALCULATE(COUNTAX('TU Feed','TU Feed'[Diff TU Date]=4),'TU Feed'[Last Flight]=1)

V3 Tracked -5 = CALCULATE(COUNTAX('TU Feed','TU Feed'[Diff TU Date]=5),'TU Feed'[Last Flight]=1)

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Pandadev , Try with these minor changes

V3 Tracked -1 = CALCULATE(COUNTAX('TU Feed','TU Feed'[Diff TU Date]),filter('TU Feed','TU Feed'[Diff TU Date]=1 && 'TU Feed'[Last Flight]=1))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Pandadev , Try with these minor changes

V3 Tracked -1 = CALCULATE(COUNTAX('TU Feed','TU Feed'[Diff TU Date]),filter('TU Feed','TU Feed'[Diff TU Date]=1 && 'TU Feed'[Last Flight]=1))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks that worked , and yes it now makes sense as to why my formula was not working.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric Community.