Forum Discussion
Issues migrating Dax formulas from Tabular model to Power Bi desktop --- Report Builder to Power Bi
Hi Karolina411 ,
In Power BI, you could use slicer to replace the parameter in report builder.
Adding slicers to the report page allows the user to interactively select the year, month, doctor's organisation etc.
- Year slicer: Use
DateDim[Year] - Month slicer: Use
DateDim[MonthName]
Then try the following dax to create a calcualted table:
MyCalculatedTable =
VAR FilteredTable =
SUMMARIZECOLUMNS(
'Providers'[PhysicianOrganization],
'Providers'[PCPLocation],
'Patients'[InsuranceType],
'DateDim'[Year],
'DateDim'[MonthName],
FILTER('DateDim', 'DateDim'[Year] >= 2022),
FILTER('Patients', 'Patients'[Populations] = "GM"),
FILTER('Providers', 'Providers'[HFPN_GMCC_Flag] = "Yes"),
FILTER('Outpatient', 'Outpatient'[OfficeVisitEncounter] = "Virtual Visit")
)
RETURN
ADDCOLUMNS(
FilteredTable,
"UniquePatients", [UniquePatients],
"TotalCostYTD", [TotalCostYTD],
"MemberMonthsYTD", [MemberMonthsYTD],
"Admits1000YTD", [Admits1000YTD],
"AnnualWellnessExamNumerator", [AnnualWellnessExamNumerator]
-- other columns
)
To better test this for you, please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
Additionly, please show the expected outcome based on the sample data you provided.
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
https://drive.google.com/drive/folders/1f2dNUj2ZOOsdVaW3B2TXNAFVuO_ALEGF?usp=sharing
Above are 3 files that may help. Is there a guide on how to transfer from report builder (.rdl files) to .pbix files? This data is being pre-processed in a VS model.