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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MattieG72MP
Advocate I
Advocate I

KPIs From Database?

Hi All

 

I'm trying to think of the best way to bring in KPI values from a table as I have two duplicate reports (UK and US) and each has different value's for the KPIs with each report pointing to a diffeent database of data.

Initial thoughts are to create a table with one row with the field names as the KPI name and the value is the value of the KPI but I really don't think that is great.

 

Does anyone else have a nice way of doing this? My KPIs at the moment are defined as metrics but they need to be data driven!

 

Thanks

Mattie

2 ACCEPTED SOLUTIONS

Hi

 

Basically I want to be able to load this structure and replace my current KPI Measure values definied in Power with these pairs of values from a database:


KPIID (int)
KPIName (varchar) - just for reference as name will be a measure in Power BI
KPIValue (float)

I'm going to load this table into Power BI and then do a lookup on the KPIID and set the value of the new measure to the value from the database.

I think I have answered my own question tbh but I'm surprised there isn't much information on this.

DAX LOOKUPVALUE seems like it will work well 🙂 

Thanks

Mattie

View solution in original post

Anonymous
Not applicable

3 REPLIES 3
Anonymous
Not applicable

@MattieG72MP could you send us a screenshot of the data relationship model? Where is the data coming from?

Hi

 

Basically I want to be able to load this structure and replace my current KPI Measure values definied in Power with these pairs of values from a database:


KPIID (int)
KPIName (varchar) - just for reference as name will be a measure in Power BI
KPIValue (float)

I'm going to load this table into Power BI and then do a lookup on the KPIID and set the value of the new measure to the value from the database.

I think I have answered my own question tbh but I'm surprised there isn't much information on this.

DAX LOOKUPVALUE seems like it will work well 🙂 

Thanks

Mattie

Anonymous
Not applicable

@MattieG72MP Awesome!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.