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

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.

Reply
frg88
Frequent Visitor

Create a table with calculated data from another

Hello, 

 

A table of my model has the next columns: 

  • Id
  • CreationDate
  • DeletionDate
  • Country

 

I want to create a new table where I have the actives items of my model for each day, I mean, the next columns: 

  • Date (01-01-2018, by example)
  • Country (Spain, by example)
  • Active (Count of all the items which creationDate <= Date and deletionDate >= Date)

 

I think I can create this new table with the function ADDCOLUMNS() or SUMMARIZE(), but I haven't got it. 

 

Thans in advance. 

1 REPLY 1
edhans
Super User
Super User

I'm not exactly clear on what you are trying to do, nor why you need a new table to show this data vs just a measure that will calculate it in a visual.

 

Can you show a sample of your current data, and a sample of the expected output?

 

If you are sure you need a new table, see this article, and note that SUMMARIZE and ADDCOLUMNS should generally be replaced with SUMMARIZECOLUMNS.

 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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