The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
i have a transactional data of my share in hospitals, it contains the following columns:
[Month] - the month of the report
[Hospital Code] - identifier unique for each hospital on my list
[Total Births] - how many babies were born in month
[Total Babies Treated] - how many babies were treated with my drug/the equivalent treatment by competitors
[Total Babies Treated by my Drug] - how many babies were treated with my drug
problem is i'm not getting the data on a regular basis and have gaps between the different hospitals.
I have additional table with forecasts for the entire year structured the same way and a dimension holding the hospital data.
my problem is: i want to be able to compare my actual vs forecast share for all hospitals that reported data.
if out of 20 hospital i have 10 that reported Jan-Jun data i want the table to show only these 10 hospitals
and if i have additional 3 that reported Jan-Apr i want the table to show 13 hospital with data only up to Apr (excluding June).
I tired using virtual table using this DAX:
Solved! Go to Solution.
Hi,
so found a nice solution to this issue:
1. created a single column table containing only the Last Update date for each hospital not connected to any other table in the model
2. building a single-select filter based on this table
3. creating a virtual table within a measure:
Hi,
so found a nice solution to this issue:
1. created a single column table containing only the Last Update date for each hospital not connected to any other table in the model
2. building a single-select filter based on this table
3. creating a virtual table within a measure:
Hi @AsafPinhas ,
Have you tried to create a calendar table as a filter for dates? The date column of the calendar table creates a relationship with the dates in your two tables. When you filter the date column of the calendar table as a slicer, you can filter the data from both tables. The date range is the range of dates in your slicer.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-stephen-msft ,
I have a date dimenstion which both transactional data tables are connected to.
when I filter by date I still see all 20 hospital with blank data points for the relevant months.
let's say for June only 4 hospitals reported their data, i'd like to compare actual vs. forecast only for those hospitals without having to manually filter these four.
Regards,
Asaf
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
83 | |
75 | |
50 | |
43 |
User | Count |
---|---|
140 | |
113 | |
73 | |
64 | |
62 |