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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

how can i create a dataset to use as a template for all my reports?

Hello, I'm very new to PBI and I'm trying to create a dataset with all my dax expressions (for example, GlobalSales = sum (sales)). This was a simple example, but the idea is to have a dataset with all the expressions gathered for those who are going to create a report, use this dataset and do not run the risk of making a mistake.

 

The challenge here is that I would like this dataset to come from a ready-made report (as this way I know that the expressions have already been validated and are correct)

 

what would be the best way to do this?

 

Thanks in advance

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Anonymous,

If these different datasets have the same data structure(field amount, name, type), you not need any operations except parameter your connection string with query parameter and save it as a template. Then you can change connection strings to generated different reports.

If they have different data structures, you can create custom functions on the query editor side to transform your data structure(e.g. extract specific field, rename fields, change types) to convert them as default formats so that raw dax formulas can be worked on new records.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

If these different datasets have the same data structure(field amount, name, type), you not need any operations except parameter your connection string with query parameter and save it as a template. Then you can change connection strings to generated different reports.

If they have different data structures, you can create custom functions on the query editor side to transform your data structure(e.g. extract specific field, rename fields, change types) to convert them as default formats so that raw dax formulas can be worked on new records.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
lbendlin
Super User
Super User

That's not what templates are for.  

 

Look at the "promoted" and "certified"  dataset process.  There you can create data models and measures that you can then mark as the system of record for all developers to base their reports  on.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors