Power BI Integration
The Power BI Integration module in Wise Municipal Manager provides comprehensive business intelligence capabilities through seamless integration with Microsoft Power BI. This module enables municipalities to create interactive dashboards, perform advanced analytics, and generate insightful visualizations from their Business Central data.
Key Features
Real-Time Data Connectivity
Direct API Integration: Live data connections to Business Central via REST APIs
Optimized Queries: Pre-built queries specifically designed for municipal reporting
Secure Access Control: Role-based access to Power BI data sources
Automated Refresh: Scheduled data updates for current reporting
Municipal-Specific Analytics
Financial Performance: Revenue, expenses, and budget variance analysis
Customer Analytics: Customer behavior and service utilization patterns
Vendor Management: Vendor performance and payment analysis
Asset Utilization: Fixed asset performance and depreciation tracking
Advanced Reporting Capabilities
Interactive Dashboards: Dynamic visualizations with drill-down capabilities
Multi-Dimensional Analysis: Analysis across departments, projects, and service areas
Time-Series Analytics: Historical trends and forecasting capabilities
Comparative Reporting: Year-over-year and period-over-period comparisons
Data Architecture
Power BI Data Model
Core Data Tables
SvePBI PowerBI Entries
Primary data aggregation table for Power BI consumption:
Fields Structure:
Year/Month: Time-based filtering and grouping
Step Hierarchy: 5-level hierarchical categorization system
Step_1: Primary category (Department, Service Area)
Step_2: Secondary category (Sub-department, Service Type)
Step_3: Tertiary category (Cost Center, Project)
Step_4: Quaternary category (Location, Asset Type)
Step_5: Detail level (Individual Account, Resource)
Income/Expense: Revenue and cost classification
Source Information: Customer/Vendor details and amounts
Text Descriptions: Human-readable descriptions for each step level
Data Aggregation Logic:
Year + Month + Step Hierarchy + Income/Expense + Source = Unique Record
Amount = Sum of related transactions
Source Type = Customer/Vendor classification
API Queries for Power BI
Customer Ledger Entries Query
Endpoint: /api/wise/powerbi/v1.0/custLedgEnt
Available Fields:
Entry Identification: Entry number, customer number, document details
Financial Data: Amount, remaining amount (LCY and foreign currency)
Date Information: Posting date with filtering capabilities
Dimensional Analysis: Global Dimension 1 and 2 codes
Document Classification: Document type and number for traceability
Filtering Capabilities:
Customer number range filtering
Posting date period selection
Document type filtering (Invoice, Credit Memo, Payment, etc.)
Global dimension filtering for departmental analysis
Vendor Ledger Entries Query
Endpoint: /api/wise/powerbi/v1.0/vendLedgEnt
Key Metrics:
Vendor payment analysis
Outstanding vendor balances
Payment terms performance
Vendor transaction volumes
Purchase order matching status
Power BI Access Control Query
Endpoint: /api/wise/powerbi/v1.0/pbiAccControl
Security Features:
User-based data filtering
Email-based access control
Financial dimension restrictions
Power BI user designation
Department-level data access control
Dashboard Development
Pre-Built Municipal Dashboards
Financial Performance Dashboard
Key Visualizations:
Revenue Analysis: Monthly and yearly revenue trends by service type
Expense Tracking: Departmental spending patterns and budget comparisons
Cash Flow: Working capital and liquidity position monitoring
Budget Variance: Actual vs. budget analysis with variance explanations
Interactive Features:
Drill-down from yearly to monthly to daily views
Filter by department, project, or service area
Dynamic period selection and comparison
Export capabilities for detailed analysis
Customer Analytics Dashboard
Customer Insights:
Service Utilization: Which municipal services are most utilized
Payment Behavior: Customer payment patterns and aging analysis
Geographic Distribution: Service usage by geographic area
Customer Satisfaction: Service delivery performance metrics
Business Intelligence:
Customer segmentation by service usage
Revenue per customer analysis
Service demand forecasting
Customer retention and acquisition metrics
Operational Performance Dashboard
Municipal Operations:
Asset Utilization: Fixed asset performance and maintenance costs
Service Delivery: Response times and service quality metrics
Resource Allocation: Staff and resource utilization across departments
Project Performance: Capital project progress and budget tracking
Custom Dashboard Creation
Development Process
Data Source Connection: Connect to Wise Municipal Manager APIs
Data Model Design: Create relationships between tables
Measure Creation: Develop KPIs and calculated fields
Visualization Building: Create charts, tables, and interactive elements
Dashboard Publishing: Deploy to Power BI Service for user access
Best Practices for Municipal Dashboards
User-Centered Design: Focus on municipal decision-maker needs
Performance Optimization: Efficient queries for large datasets
Mobile Responsiveness: Dashboards accessible on mobile devices
Consistent Branding: Municipal branding and color schemes
Accessibility: Compliance with accessibility standards
Security and Access Control
Role-Based Data Access
Access Control Implementation
Limited User Access Control Integration:
Email-based user identification
Financial dimension filtering per user
Power BI user designation flags
Department-based data restrictions
Security Layers:
Business Central Authentication: Valid BC user required
Power BI User Flag: Must be designated as Power BI user
Dimensional Filtering: Data filtered by user's department/project access
API Access Control: Secure API authentication and authorization
Row-Level Security (RLS)
Implementation Strategy:
User email as security filter
Dynamic filtering based on user permissions
Department-level data isolation
Project-based access control
RLS Configuration Example:
Power BI Filter Expression:
[UserEmail] = USERPRINCIPALNAME()
AND [Department] IN (VALUES(UserDepartments[Department]))
Data Privacy and Compliance
Personal Data Protection
Data Masking: Sensitive information masked in visualizations
Aggregated Reporting: Individual-level data appropriately aggregated
Audit Trail: Complete logging of data access and usage
Retention Policies: Data retention aligned with municipal policies
Municipal Governance Compliance
Financial Reporting Standards: Compliance with municipal accounting standards
Transparency Requirements: Public reporting dashboard capabilities
Audit Support: Data lineage and traceability for auditors
Regulatory Reporting: Automated regulatory report generation
Technical Implementation
API Configuration
Power BI API Endpoints
Base URL Structure: https://[tenant].api.businesscentral.dynamics.com/v2.0/[environment]/api/wise/powerbi/v1.0/
Available Endpoints:
custLedgEnt: Customer Ledger EntriesvendLedgEnt: Vendor Ledger EntriespbiAccControl: Access Control InformationpowerBIEntries: Aggregated municipal data
Authentication Setup
OAuth 2.0 Configuration:
Register application in Azure Active Directory
Configure API permissions for Business Central
Set up service principal for Power BI access
Configure refresh token management
Data Refresh Strategy
Refresh Options
Real-Time Refresh:
DirectQuery connections for live data
Suitable for executive dashboards requiring current data
May impact performance with large datasets
Scheduled Refresh:
Import data model with scheduled updates
Better performance for complex visualizations
Configurable refresh frequency (hourly, daily, weekly)
Incremental Refresh:
Optimized for large historical datasets
Only refreshes changed or new data
Reduces refresh time and resource consumption
Performance Optimization
Query Folding: Ensure queries fold back to Business Central
Indexed Fields: Use indexed fields in filter conditions
Aggregated Tables: Pre-aggregate data for improved performance
Partitioning: Partition large tables by date ranges
Use Cases and Applications
Executive Reporting
Municipal Leadership Dashboards
Mayor/Municipal Manager View:
Overall financial health and performance
Key service delivery metrics
Budget execution and variance analysis
Strategic initiative progress tracking
Department Head Dashboards:
Department-specific financial performance
Resource utilization and efficiency metrics
Service delivery quality indicators
Staff productivity measurements
Council Reporting
Public Transparency Reports:
Public-facing dashboards for transparency
Budget execution public reporting
Service performance public metrics
Capital project progress updates
Operational Analytics
Financial Management
Budget vs. Actual Analysis:
Real-time budget execution monitoring
Variance analysis with explanations
Forecasting and projection capabilities
Cash flow management and planning
Revenue Optimization:
Service fee analysis and optimization
Collection efficiency monitoring
Revenue diversification analysis
Cost recovery rate calculations
Service Delivery Analytics
Customer Service Performance:
Service request response times
Customer satisfaction metrics
Service availability and uptime
Channel utilization analysis
Asset Management Analytics:
Asset utilization rates
Maintenance cost analysis
Asset lifecycle management
Replacement planning optimization
Strategic Planning
Long-Term Planning Support
Demographic and Growth Analysis:
Population growth impact on services
Infrastructure capacity planning
Service demand forecasting
Resource allocation optimization
Financial Sustainability:
Long-term financial projections
Debt management analysis
Capital investment planning
Revenue sustainability assessment
Integration with Business Central
Native Integration Benefits
Seamless Data Flow
No ETL Required: Direct connection to Business Central data
Real-Time Updates: Changes reflected immediately in reports
Data Consistency: Single source of truth maintained
Security Inheritance: BC security model extends to Power BI
Business Central Power BI Integration
Power BI Workspace Integration:
Embedded Power BI reports in BC pages
Role Center integration with relevant dashboards
Action-driven report generation
Contextual reporting based on current page
Data Lineage and Governance
Data Quality Assurance
Source System Validation: Data validation at Business Central level
Consistent Definitions: Standardized KPI and metric definitions
Version Control: Controlled updates to dashboard definitions
Testing Framework: Systematic testing of reports and dashboards
Master Data Management
Consistent Hierarchies: Department and project hierarchies maintained
Account Classification: Standardized account categorization
Customer/Vendor Matching: Consistent entity identification
Time Period Standardization: Consistent fiscal period definitions
Troubleshooting and Support
Common Issues and Solutions
Connection Issues
Problem: "Data source connection failed"
Solutions:
Verify Business Central service availability
Check API authentication credentials
Confirm user has appropriate BC permissions
Validate network connectivity and firewall settings
Problem: "Query timeout errors"
Solutions:
Optimize query filters to reduce data volume
Use indexed fields in filter conditions
Consider switching from DirectQuery to Import mode
Implement query result pagination
Performance Issues
Problem: Slow dashboard loading
Solutions:
Review and optimize DAX measures
Implement aggregated tables for common calculations
Use appropriate visualization types for data volume
Consider incremental refresh for large datasets
Security and Access Issues
Problem: Users cannot see expected data
Solutions:
Verify Power BI user designation in BC
Check row-level security configuration
Confirm dimensional filtering setup
Validate user email matching between systems
Best Practices for Municipal Implementation
Dashboard Design Guidelines
Keep It Simple: Focus on key metrics that drive decisions
Mobile-First: Design for mobile device viewing
Consistent Layout: Standardize layout across municipal dashboards
Color Accessibility: Use colors accessible to color-blind users
Performance Best Practices
Optimize Data Model: Remove unnecessary columns and tables
Use Appropriate Relationships: Create efficient table relationships
Aggregate When Possible: Pre-aggregate data for better performance
Monitor Usage: Track dashboard usage and performance metrics
Key Benefits
Real-Time Insights: Current data for timely decision-making
Municipal Focus: Tailored specifically for municipal government needs
Scalable Architecture: Supports organizations of all sizes
Security-First: Comprehensive security and access control
Integration Simplicity: Seamless connection with existing BC implementation
Cost Effective: Leverages existing Microsoft ecosystem investments
User Adoption: Familiar Power BI interface for easy adoption
Compliance Ready: Built-in support for municipal reporting requirements
The Power BI Integration module transforms raw municipal data into actionable business intelligence, enabling data-driven decision-making across all levels of municipal government while maintaining the security and compliance standards required for public sector operations.