Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
We have a table visual with few measures represented as columns.
While exporting the data from a table visual using "Underlying Data" feature, Power bI was not flatenning the exported data. Instead it was only exporting the measure values. The below points have also been checked :
We are wondering what can be the cause that the "Underlying data" feature is not exporting the actual Underlying data.
Note : Export to "Underlying Data" feature is enabled in both POwer BI desktop file and service.
Any suggesstion or solution would be really appreciated.
Thank you
Hey Anonymous & Others, Not sure whether you were able to resolve the issue, Eventhough it is too late now, posting the solution, so that it can help others.
I referred the sample file which you shared to @collinq and noticed you have kept the subjected measures in separate table (no worries it is the best way and everyone does including myself) but the problem arises from there because you reference the table name in the measure. To simplify - if you keep the measure out of its home table you need to reference the home table in the measure or else it is not going to work and and in the other case it is not going to give you correct export data using underlying data export option.
I see your measure is like
Hi @Anonymous ,
I am not quite sure what you are striving for - when you export the data, you are exporting the data that is behind the visual. So, the underlying data will provide the data that creates the visual and not necessarily every single data source in the dataset. Also, if you have RLS applied this will affect the outcome. And, if you have filters applied then that will affect the output as well. Aggregrations are flattened and removed as well. There is also a limit to the number of rows being exported and that might be a limit for you.
Proud to be a Datanaut!
Private message me for consulting or training needs.
Hi @collinq ,
I am trying to extract data from a table. The table contains Customer name, Year Month, and some measures (below screenshot). When I try to export “Underlying data ” from the table visual, it only exports the overall measure value and not the underlying data which are connected to it.
EXPORTED FROM :
EXPORTED RESULT
DATA MODEL
Hi @Anonymous ,
Thanks for the diagram. I can't recreate the problem. In my tests, it is working fine and as expected. Would you be willing to put the file in a file share somewhere and let me access it and see what I can do? I test with and without filters, with and without the sum field (fyi - without the summation field [the 5469] being in the aggregration, you can't do underlying data).
Proud to be a Datanaut!
Private message me for consulting or training needs.
Hi @collinq ,
You can download the sample file from the below link :
https://drive.google.com/drive/folders/1RbGMnr1xTICDDff7Jh6jJwmO14zsHTDN?usp=sharing
Br,
Ankita
Hi @Anonymous ,
I received your file and tested it and got the exact same result, initially. So, the good news is that it was replicated easily for the result. The bad news is that this is not what we wanted. So, I dug in a bit more and discovered some documentation that seemed to indicate that this was what should be expected (not by me or by you but by design 🙂 ).
Specifically, I saw this comment:
"What you see when you select Underlying data can vary. "
If a visual contains Aggregates, you will see "the first aggregate and non-hidden data from the entire table for that aggregate" and then all of these for "measures"
Visual contains | What you'll see in export |
---|---|
Measures* | all measures in the visual and all measures from any data table containing a measure used in the visual |
Measures* | all non-hidden data from tables that contain that measure (as long as that relationship is *:1 or 1:1) |
Measures* | all data from all tables that are related to table(s) containing the measures via a chain of *:1 of 1:1) |
Measures only | all non-hidden columns from all related tables (to expand the measure) |
Measures only | summarized data for any duplicate rows for model measures |
Sooooo, I changed it up a bit and got the summary number WITHOUT using your "Total Calls" measure. And, it worked fine for a full underlying data export. In this file, YOUR initial box is on the left, my version on the right. I have placed the full export and the file here for you:
Proud to be a Datanaut!
Private message me for consulting or training needs.
Hi @collinq ,
Thank you so much for putting your inputs. So do you mean in this case the below condition is applicable ?
Measures * All measures in the visuals and all measures from any data table containing a measure used in visual.
Although I want to use measures as a calculation in a table ( and do not want to aggregrate a columnin the table).
Thanks !
Hi @Anonymous ,
Yes, your situation is as you referenced - you are getting the result set without much data because of the measure being the aggregration. Perhaps make an idea to change this behaviour?
Proud to be a Datanaut!
Private message me for consulting or training needs.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.